Using dynamic event info in email subject line

Home Forums Ticket Products Event Tickets Plus Using dynamic event info in email subject line

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1343859
    joelgoodman
    Participant

    I came across an old thread on how to update the email subject line with this filter:

    /**
    * Event Tickets - Change Ticket Email Subject
    */
    add_filter( 'tribe_rsvp_email_subject', 'tribe_change_rsvp_subject' );
    function tribe_change_rsvp_subject( $subject ) {
    
    	$subject = sprintf( __( 'New Your tickets from %s', 'event-tickets' ), get_bloginfo( 'name' ) );
    
    	return $subject;
    }

    I was wondering when tribe_rsvp_email_subject() gets run and if there’s a way to add the event title + date to the subject line.

    • This topic was modified 6 years, 8 months ago by joelgoodman. Reason: code tags … y'all should use markdown
    #1344483
    Victor
    Keymaster

    Hi Joel!

    Thanks for getting in touch with us! Let me help you with that topic.

    The ‘tribe_rsvp_email_subject’ filter is loaded when the send_tickets_email() function executes to send the ticket email. You can find this function in the RSVP.php file located at /wp-content/plugins/event-tickets/src/Tribe/

    You could indeed add the event title and date using that filter as $event_id is one of the available parameters for the ‘tribe_rsvp_email_subject’.

    I hope that helps! Let me know if you have other questions.

    Best,
    Victor

    #1355004
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Using dynamic event info in email subject line’ is closed to new replies.