Skip to content

Instantly share code, notes, and snippets.

@nickkuijpers
Created April 17, 2015 16:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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: info@niku-solutions.nl\r\n"; // replace my_personal@email.com with your email
}
return $headers;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment