Created
November 30, 2018 22:08
-
-
Save webdados/947b1fbd43bdfdaf241ad7d1c36ba707 to your computer and use it in GitHub Desktop.
Bcc Invoices to Accountant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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