The WooCommerce Email Settings enable you to include custom beneficiaries just for New Order, Cancelled Order, Failed Order and all administrator just messages.
In any case, imagine a scenario in which you need to add an email beneficiary to a client email for example the Completed Order one? For example, you have to send it to your dropshipper. Additionally, you should add a To: beneficiary, or rather a cleaner Cc: or more secure Bcc:.
To send BCC to all WooCommerce messages:
Remove recently included code bits from your present theme’s functions.php file and
Include following bit in your present theme’s functions.php file
To Add Recipient to a Customer WooCommerce Email
For this situation I’m focusing on the “customer_completed_order” thus I’m utilizing “woocommerce_email_recipient_customer_completed_order”.
[php]
add_filter( ‘woocommerce_email_recipient_customer_completed_order’, ‘wbcomdesign_order_completed_email_add_to’, 9999, 4 );
function wbcomdesign_order_completed_email_add_to( $email_recipient, $email_object, $email ) {
$email_recipient .= ‘, [email protected]’;
return $email_recipient;
}
[/php]
Add Cc/Bcc Recipient to a Customer WooCommerce Email
[php]
add_filter( ‘woocommerce_email_headers’, ‘wbcomdesign_order_completed_email_add_cc_bcc’, 9999, 4 );
function wbcomdesign_order_completed_email_add_cc_bcc( $headers, $email_id, $order ) {
if ( ‘customer_completed_order’ == $email_id ) {
$headers .= "Cc: Name <[email protected]>" . "\r\n";
$headers .= "Bcc: Name <[email protected]>" . "\r\n";
}
return $headers;
}
[/php]
Or You can also use the plugin to add CC & BCC for Woocommerce Order Emails.