The right for "on-hold" notification of order status . $email_id 'customer_on-hold_order'
So your code will be:
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 ){
$headers .= 'Bcc: My name <my@email.com>\r\n';
}
return $headers;
}
The code goes in the function.php file of your active child theme (or theme), as well as in any plug-in file.
.
: woocommerce_email_headers hook