Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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