• Resolved chetk

    (@chetk)


    Hello,
    I have been using RTEC for our small club website for some months now and not only do I love it, but our members love using it.

    I do have one question regarding customizing the confirmation emails. I would like to include the event organizer’s name in the email. I have found the text templates that list various items ({event-venue}; {first}; etc) but I have not been able to find out if there are any more such templates and if one exists for the venue organizer. Can someone either provide a list or point me in the right direction?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author roundupwp

    (@roundupwp)

    Hey chetk,

    I’m glad you like the plugin!

    We have a feature for this in the Pro version but if this is all you need, try adding this to your theme’s functions.php file:

    function ru_add_organizer_template( $search_replace, $sanitized_data ) {
    	$event_id = isset( $sanitized_data['event_id'] ) ? $sanitized_data['event_id'] : false;
    	if ( is_callable( 'tribe_get_organizer_ids' ) && is_callable( 'tribe_get_organizer_link' ) ) {
    		$organizer_ids = tribe_get_organizer_ids( $event_id );
    		$organizer_link_array = array();
    		foreach ( $organizer_ids as $organizer ) {
    			$organizer_link_array[] = tribe_get_organizer_link( $organizer );
    		}
    		$organizer_str = implode(', ', $organizer_link_array );
    
    		$search_replace['{organizer-link}'] = $organizer_str;
    	}
    	return $search_replace;
    }
    add_filter( 'rtec_email_templating', 'ru_add_organizer_template', 10, 2 );

    You can then use the template {organizer-link} and it will list the organizers separated by commas. Clicking on the name will bring the person to the organizer page on your site.

    Let me know if you have more questions!

    – Craig

    Thread Starter chetk

    (@chetk)

    Thanks Craig, that worked for me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Text Templates for confirmation emails’ is closed to new replies.