Blind Copy EDD Receipts to the Shop
Sends you a hidden copy of every purchase receipt that Easy Digital Downloads emails to customers, so you can check exactly what they received.
Opens WPIDE on
Code
$wpide_edd_bcc = '[email protected]'; // Copy recipient.
add_filter( 'edd_receipt_headers', function ( $headers ) use ( $wpide_edd_bcc ) {
if ( is_email( $wpide_edd_bcc ) ) {
$headers = rtrim( (string) $headers ) . "\r\nBcc: " . $wpide_edd_bcc . "\r\n";
}
return $headers;
} );
Notes
Use a separate mailbox, as busy stores will receive one copy per sale.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.