Skip to content

Instantly share code, notes, and snippets.

@juanfra
Created July 10, 2023 11:08
Show Gist options
  • Save juanfra/8470edd4a8c9cd6d0a3cebc8f6010dd7 to your computer and use it in GitHub Desktop.
Save juanfra/8470edd4a8c9cd6d0a3cebc8f6010dd7 to your computer and use it in GitHub Desktop.
Add a custom BCC for the RSVP email.
<?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;
}
@FeelonAT
Copy link

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

@greenorest
Copy link

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?

@annikaschmidttw
Copy link

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