I want the admin to receive on hold order notification as well in WooCommerce. Right now, only customers get that notification.
I have tried the following codes but it doesn't seem to work.
Here is my code:
add_filter( 'woocommerce_email_headers', 'mycustom_headers_filter_function', 10, 2);
function mycustom_headers_filter_function( $headers, $object ) {
if ($object == 'customer_on_hold_order') {
$headers .= 'BCC: My name <my@email.com>' . "
";
}
return $headers;
}
What should be the correct filter/hook to use?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…