Skip to content

Instantly share code, notes, and snippets.

@fervous
Created April 20, 2017 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fervous/e79e9d9e41d5a0c9de092d24e5f2c3e8 to your computer and use it in GitHub Desktop.
Save fervous/e79e9d9e41d5a0c9de092d24e5f2c3e8 to your computer and use it in GitHub Desktop.
send a copy of "vendor notify shipped" email to the admin
add_filter( 'woocommerce_email_headers', 'custom_vendor_notify_shipped', 10, 2);
function custom_vendor_notify_shipped( $headers, $email ) {
if ($email == 'vendor_notify_shipped') {
$headers .= 'BCC: Your name <your@email.com>' . "\r\n";
}
return $headers;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment