Created
November 20, 2024 12:44
-
-
Save kartikparmar/a77c36effa5031b43c1bf26ec01582fc to your computer and use it in GitHub Desktop.
adding bcc to reminder emails
This file contains hidden or 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 | |
function bkap_booking_reminder_add_cc_bcc( $headers, $email_id, $order ) { | |
if ( 'bkap_booking_reminder' == $email_id ) { | |
$admin_email = get_option( 'admin_email' ); | |
$headers .= "Bcc: Admin <" . $admin_email . ">\r\n"; | |
} | |
return $headers; | |
} | |
add_filter( 'woocommerce_email_headers', 'bkap_booking_reminder_add_cc_bcc', 9999, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment