Skip to content

Instantly share code, notes, and snippets.

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 MinaPansuriya/043a240e198a85734734a25b8d896cd0 to your computer and use it in GitHub Desktop.
Save MinaPansuriya/043a240e198a85734734a25b8d896cd0 to your computer and use it in GitHub Desktop.
/**
* @Title: WooCommerce - Add Bcc email to Completed Order Email
* @Author: Mina Pansuriya
* @Blog URL: http://minapansuriya.com/woocommerce-add-bcc-email-to-completed-order-email/
**/
add_filter( 'woocommerce_email_headers', 'es_headers_filter_function', 10, 3);
function es_headers_filter_function( $headers, $id, $object )
{
if ($id == 'customer_completed_order')
{
$headers .= 'BCC: '.$id.' <manager@gmail.com>' . "\r\n";
}
return $headers;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment