I am currently using this code to send out notifications on failed and cancelled orders.
function wc_cancelled_order_add_customer_email( $recipient, $order )
{
return $recipient . ',' . $order->billing_email;
}
add_filter( 'woocommerce_email_recipient_cancelled_order', 'wc_cancelled_order_add_customer_email', 10, 2 );
add_filter( 'woocommerce_email_recipient_failed_order', 'wc_cancelled_order_add_customer_email', 10, 2 );
The problem is that those two admin emails I have set in the system under woocommerce settings are also added to the email recipient together with the customers email. Is it possible to tweak this, so the admin E-mail adresses are on BCC instead, so the customer can't see their email addresses?