Last active
March 2, 2024 18:41
-
-
Save skyshab/27ab9a828bcf41a597a46c66aeff376f to your computer and use it in GitHub Desktop.
Adding additional emails to RSVP confirmations
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 | |
/** | |
* BCC custom email on all Event Tickets' RSVP ticket emails | |
*/ | |
add_filter( 'tribe_rsvp_email_headers', 'my_add_bcc_email_headers' ); | |
function my_add_bcc_email_headers() { | |
// set Headers to Event Tickets' default | |
$headers = array( 'Content-type: text/html' ); | |
// define who gets bcc'd | |
$bcc = "Custom Name <[email protected]>, My Other Name <[email protected]>"; | |
$headers[] = sprintf( 'Bcc: %s', $bcc ); | |
return $headers; | |
} |
Is there a way to make this work for when someone buys a ticket instead of RSVP? I am not using WooCommerce, just the standard ticket commerce that comes with the plugin.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
would this work with paypal payments?