✨ This article covers how to disable the RSVP email for legacy emails. Since Event Tickets 5.6.0, you can do this via settings. Learn more.

When folks RSVP to events on your site, they receive an email confirmation of their RSVP. This is not quite a “ticket” in the traditional sense, and so we are often asked if this confirmation email can be disabled.

With a bit of custom code, you can prevent the sending of the RSVP confirmation emails by adding the following line of code to your theme’s functions.php file:

add_filter( 'tribe_rsvp_email_recipient', '__return_empty_array' );

Since Event Tickets 5.1 there is also the possibility to add attendee RSVPs manually to an event through the back-end. The attendee will receive an email confirmation of their RSVP in this case as well unless the following snippet is used:

add_filter( 'tribe_ticket_email_recipient', 'et_dont_notify_rsvp_recipient_on_manual_addition', 10, 4 );

function et_dont_notify_rsvp_recipient_on_manual_addition( $to, $post_id, $order_id, $tickets ) {
   if ( 'rsvp' == $tickets[0]['provider_slug'] ) {
      return;
   }
   return $to;
}

If you create hidden events and want to suppress the confirmation email only on events that are marked as “Hidden from Upcoming” when adding attendees, you can use the following code snippet.

add_filter( 'tec_tickets_emails_dispatcher_to', function ( $to, $mail ) {
if ( is_admin() && tribe_is_truthy( get_post_meta( $mail->get_email()->get( 'post_id' ), '_EventHideFromUpcoming', true ) ) ) {
return null;
}

return $to;
}, 10, 2 );