How to Get email recipient to make an conditional function to add extra bcc email header on email only to admin OR by Order Status?
add_filter( 'woocommerce_email_headers', 'profit_extra_email', 10, 2);
function profit_extra_email( $headers ) {
$headers .= 'BCC: Vendas Promocional Fitness <[email protected]>' . "\r\n";
return $headers;
}
This function above work, but bcc email retrieve all emails. I need retrieve only emails to admin OR by Order Status.
Help any!! :O