"Shipped Email" Send Copy to Admin

Gil

Member
Hi everyone, is there an option to send a copy of the "Shipped Email" to Admin?

I was trying this code but it didn't work:

add_filter( 'woocommerce_email_headers', 'mycustom_headers_filter_function', 10, 2);

function mycustom_headers_filter_function( $headers, $object ) {
if ($object == 'customer_shipped_order') {
$headers .= 'BCC: Admin <myemail@email.com>' . "\r\n";
}

return $headers;
}
 
Top