Created
April 19, 2016 06:20
-
-
Save monecchi/698e3fab0e2045c989167f644c33b706 to your computer and use it in GitHub Desktop.
BCC all emails sent by WooCommerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_email_headers', 'add_bcc_all_emails', 10, 2); | |
function add_bcc_all_emails($headers, $object) { | |
$headers = array(); | |
$headers[] = 'Bcc: Name <[email protected]>'; | |
$headers[] = 'Content-Type: text/html'; | |
return $headers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment