Created
April 17, 2015 16:53
-
-
Save nickkuijpers/9a7cfca7cc7f606af143 to your computer and use it in GitHub Desktop.
WooCommerce Extra E-mail Notification
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
add_filter( 'woocommerce_email_headers', 'add_bcc_to_wc_admin_new_order', 10, 3 ); | |
function add_bcc_to_wc_admin_new_order( $headers = '', $id = '', $wc_email = array() ) { | |
if ( $id == 'customer_completed_order' ) { | |
$headers .= "Bcc: [email protected]\r\n"; // replace [email protected] with your email | |
} | |
return $headers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment