Hi Stephen,
I know it’s been asked before, but I am not able to figure out how to get this to work,
even after studying the posts.
How to use “event_start_time” as a function to add %event_start_time% as an email placholder?
or has this be added to event organiser pro already?
I would like to add the “event start time” to the email the ticket.
If I follow the below example what should I use to replace this with?
$event_id = eo_get_booking_meta( $booking_id, 'event_id' );
$event = get_post( $event_id );
$organiser = get_userdata( $event->post_author );
$parsed_message = str_replace( '%organiser%', $organiser->display_name, $parsed_message );
add_filter( ‘eventorganiser_email_template_tags’, ‘my_organiser_email_tag’, 10, 3 );
function my_organiser_email_tag( $parsed_message, $booking_id, $original_message ){
//$parsed_message Email body with tags parsed
//$booking_id The booking ID
//$original_message Email body without tags parsed
$event_id = eo_get_booking_meta( $booking_id, ‘event_id’ );
$event = get_post( $event_id );
$organiser = get_userdata( $event->post_author );
$parsed_message = str_replace( ‘%organiser%’, $organiser->display_name, $parsed_message );
return $parsed_message;
}
Kind regards,
Tony

Tony
Hi Tony,
The %event_date%
placholder supports date/time formats:
%event_date{jS F Y}{ g:ia}%
(but this isn’t documented yet). Unfortunately a bug means that the e-mail preview in the admin settings won’t work with this. (This is fixed in 1.10.0).

Stephen Harris
Hi Stephen,
Thanks for the quick answer. The new date and time is working well in the email ticket.
Kind regards,
Tony

Tony