Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// This sample code will add additional recipients to a WooCommerce email order type, based on the order email address
// Email id's for the various email types (i.e. customer_invoice) can be found here:
// Add the following to the bottom of your theme's functions.php:
add_filter( 'woocommerce_email_recipient_customer_invoice', 'woocommerce_email_customer_invoice_add_recipients' );
function woocommerce_email_customer_invoice_add_recipients( $recipient, $order ) {
if ( '' == $recipient ) {
$recipient .= ',';
return $recipient;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment