Skip to content

Instantly share code, notes, and snippets.

@nickkuijpers
Created April 17, 2015 16:53
Show Gist options
  • Save nickkuijpers/9a7cfca7cc7f606af143 to your computer and use it in GitHub Desktop.
Save nickkuijpers/9a7cfca7cc7f606af143 to your computer and use it in GitHub Desktop.
WooCommerce Extra E-mail Notification
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