Hi Stephen,
EO Pro currently supports quite a few email placeholders, but is missing others that I’d like to use.
I’m particularly interested in displaying the venue name, address and links to the venue page and event page.
Is there currently a way of adding this information in emails (esp. booking confirmation emails), or would you consider adding these placeholders?
Thanks
Dario
Absolutely,
You can add support for your own email tags, but if there are any you find you need then just let me know (noted venue address, event & venue link).
Here’s an example implementing an %organiser%
tag:
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;
}
(Post any other suggestions here and I’ll try to get them in for 1.5)
-
This reply was modified 11 years, 1 month ago by Stephen Harris.
Stephen Harris
Stephen Harris