Woocommerce BCC to admin email

When someone places an order in woocommerce, you receive an order email as an administrator. I would like to add additional recipients for this email. But! I would like this additional BCC to be made on these exact letters. Not all other letters go through.

What is said in this thread applies to all emails, and not to specific email addresses that the administrator receives: Additional recipients on the woocommerce invoice

+7
email wordpress woocommerce
source share
1 answer

Try this code:

add_filter( 'woocommerce_email_headers', 'add_bcc_to_wc_admin_new_order', 10, 3 ); function add_bcc_to_wc_admin_new_order( $headers = '', $id = '', $wc_email = array() ) { if ( $id == 'new_order' ) { $headers .= "Bcc: my_personal@email.com \r\n"; // replace my_personal@email.com with your email } return $headers; } 

This code is verified in WC 2.1

+7
source share

All Articles