Send on-hold order status email notification to admin
问题 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>' . "\r\n"; } return $headers; } What should be the