By default, WooCommerce only sends On-Hold order notifications to customers (not sure why, as it seems having a shop manager know when an order is on-hold would be pretty important...)
I have tried implementing the following snippets into my child theme's functions.php based on the threads I have found researching here and on Google: Send on-hold order status email notification to admin
add_filter( 'woocommerce_email_headers', 'custom_admin_email_notification', 10, 3);
function custom_admin_email_notification( $headers, $email_id, $order ) {
if( 'customer_on-hold_order' == $email_id ){
// Set HERE the Admin email
$headers .= 'Bcc: My name <my@email.com>\r\n';
}
return $headers;
}
I have also tried the following snippet from the same thread:
// Send on-hold order status email notification to admin
add_filter( 'woocommerce_email_headers', 'custom_admin_email_notification', 10, 3);
function custom_admin_email_notification( $headers, $email_id, $order ) {
if( strpos($email_id,'hold') > 0 ){
$headers .= 'Bcc: Admin User <admin@example.com>'. "\r\n";
}
return $headers;
}
None of these seem to work when an order is changed from Pending Payment to On-Hold. Yes, I have changed the email in the snippets to my admin email. I am looking for a solution where an admin will be BCC'd on the Customer On-Hold email either when this happens automatically (from pending payment to on-hold) or manually when editing an order.