Skip to content

Instantly share code, notes, and snippets.

@webdados
Created November 30, 2018 22:08
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 webdados/947b1fbd43bdfdaf241ad7d1c36ba707 to your computer and use it in GitHub Desktop.
Save webdados/947b1fbd43bdfdaf241ad7d1c36ba707 to your computer and use it in GitHub Desktop.
Bcc Invoices to Accountant
<?php
/* Bcc Invoices to Accountant */
add_filter( 'invoicexpress_woocommerce_email_headers', 'my_invoicexpress_woocommerce_email_headers', 10, 3 );
function my_invoicexpress_woocommerce_email_headers( $headers, $order_object, $type ) {
if ( $type = 'invoice' ) {
$headers[] = 'Cc: johndoe@accountant.foo';
}
return $headers;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment