Last active
February 18, 2017 14:14
-
-
Save nielslange/b516660263633fe37796fd8425bb6e3d to your computer and use it in GitHub Desktop.
Forward all WC email notifications
This file contains 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
<?php | |
//* Forward all WC email notifications | |
add_filter( 'woocommerce_email_headers', 'nl_forward_wc_email_notifocations', 10, 2); | |
function nl_forward_wc_email_notifocations($headers, $object) { | |
$headers = array(); | |
$headers[] = 'Bcc: Niels Lange <[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