translating the booking confirmation e-mail (with WPML)

WordPress Event Management, Calendars & Registration Forums General Question translating the booking confirmation e-mail (with WPML)

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23462

    Hi!
    Great plugin!
    I have 2 languages in our website.
    I can’t figure out how can I translate the booking confirmation e-mail sent to bookees.
    Can you help me?

    Thanks!

    Hadas Lavee
    #23579

    Hadas,

    There’s a filter for the booking confirmation message. You can use that to change the text based on the language:

    add_filter( 'eventorganiser_booking_confirmed_email_body', function( $message, $booking_id ) {
      $message = '... set text based on language... ';
      $template = eventorganiser_pro_get_option( 'email_template' );
      // parse template tags
      $message = eventorganiser_email_template_tags( $message, $booking_id, $template );
      return $message;
    }, 10, 2 );
    
    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.