Receive a copy of each invoice sent by email

To get a copy of each invoice sent to the customer by email, you can add your email address as BCC for all or specific WooCommerce emails.

To achieve this, you need to add a filter to your theme functions, read this first if you have not edited your theme functions (functions.php) before!

Here’s an example that will send you a copy of the completed order email (called ‘customer_completed_order’ internally):

add_filter( 'woocommerce_email_headers', 'woocommerce_completed_order_email_bcc_copy', 10, 2);

function woocommerce_completed_order_email_bcc_copy( $headers, $email ) { 
    if ($email == 'customer_completed_order') { 
        $headers .= 'BCC: Your name <your@email.com>' . "\r\n"; //just repeat this line again to insert another email address in BCC
    }

    return $headers; 
}

if you want to receive a copy of all WooCommerce email, you can remove the ‘if’ part:

add_filter( 'woocommerce_email_headers', 'woocommerce_email_bcc_copy', 10, 2);

function woocommerce_email_bcc_copy( $headers, $email ) { 
    $headers .= 'BCC: Your name <your@email.com>' . "\r\n"; //just repeat this line again to insert another email address in BCC

    return $headers; 
}

or limited to several specific emails (Processing and Completed in this example):

add_filter( 'woocommerce_email_headers', 'woocommerce_emails_bcc_copy', 10, 2);

function woocommerce_emails_bcc_copy( $headers, $email ) { 
    if ( in_array( $email, array('customer_completed_order', 'customer_processing_order') ) ) { 
        $headers .= 'BCC: Your name <your@email.com>' . "\r\n"; //just repeat this line again to insert another email address in BCC
    }

    return $headers; 
}