Skip to content

Instantly share code, notes, and snippets.

@fervous
Last active April 21, 2017 02:20
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/c1cb74fb1a44329a2802d7d16c5ba940 to your computer and use it in GitHub Desktop.
Save fervous/c1cb74fb1a44329a2802d7d16c5ba940 to your computer and use it in GitHub Desktop.
send a copy of "vendor notify new order" email to the admin
add_filter( 'woocommerce_email_headers', 'custom_vendor_notify_order', 10, 2);
function custom_vendor_notify_order( $headers, $email ) {
if ($email == 'vendor_new_order') {
$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