Support » Plugin: Event Tickets and Registration » Event title in ticket or RSVP email

  • pressworthammer

    (@pressworthammer)


    Thanks for your support Abz. For everyone, here is how to add the Event title dynamically to the ticket or RSVP emails:

    Ticket email:

    add_filter ( 'tribe_tickets_ticket_email_subject', 'change_tickets_email_subject', 10, 4 );
    function change_tickets_email_subject( $subject, $event_id, $order_id, $tickets ) {
     if( empty( $tickets ) || ! is_array( $tickets ) ) {
     return $subject;
     }
     $event = get_post( $tickets[0]['event_id'] );
     return "Your ticket to: " . $event->post_title;
    }

    RSVP confirmation email:

    add_filter ( 'tribe_rsvp_email_subject', 'change_rsvp_email_subject', 10, 2 );
    function change_rsvp_email_subject($subject, $event_id) {
     $event = tribe_get_event( $event_id );
        return "Event Confirmation: " . $event->post_title;
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this review.