Skip to content

Instantly share code, notes, and snippets.

@skyshab
Last active March 2, 2024 18:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyshab/27ab9a828bcf41a597a46c66aeff376f to your computer and use it in GitHub Desktop.
Save skyshab/27ab9a828bcf41a597a46c66aeff376f to your computer and use it in GitHub Desktop.
Adding additional emails to RSVP confirmations
<?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 <custom-email@example.com>, My Other Name <another-email@example.com>";
$headers[] = sprintf( 'Bcc: %s', $bcc );
return $headers;
}
@toobadev
Copy link

would this work with paypal payments?

@mminten75
Copy link

mminten75 commented Oct 26, 2022

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