Created
July 10, 2023 11:08
-
-
Save juanfra/8470edd4a8c9cd6d0a3cebc8f6010dd7 to your computer and use it in GitHub Desktop.
Add a custom BCC for the RSVP email.
This file contains 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 | |
//* Do NOT include the opening php tag | |
/** | |
* BCC custom email on all Event Tickets' RSVP ticket emails | |
*/ | |
add_filter( 'tec_tickets_emails_dispatcher_rsvp_headers', 'my_add_bcc_email_headers' ); | |
function my_add_bcc_email_headers( $headers ) { | |
$headers['Bcc'] = 'YOUR NAME <your@email.com>'; | |
return $headers; | |
} |
Hi, thanks for the code! could you please adapt the code for the normal ticket emails from the event calendar?
Thank you very much! Best regards, Dominic
Thank you very much for the code. I use the code snippet plugin on my wordpress site. I use the tickets options of the events calendar and wanted to use that code to have a copy of "reservations" Emails sent to a adress of my choice. I put that address in the code shown above. I then paste the code in the code snippet plugin and activate it, chose "run everywhere".
Unfortunately, nothing happens. Can someone please help?
Hey everyone, I have the same problem as @greenorest. Can you please check for a solution?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @annikaschmidttw,
Thanks for your comment. Yes, please check this article, where we explain how to use custom snippets.
Best,
Juan