One email template per booking form

WordPress Event Management, Calendars & Registration Forums General Question One email template per booking form

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

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

    Hello, is it possible to have one email template per booking form, instead of one template for all forms?

    Staatsbibliothek zu Berlin
    #35155

    Not within the plug-in UI, but this page details some of hooks you can use to change the email content on an event basis: http://docs.wp-event-organiser.com/bookings/notification-emails/

    The four hooks listed:

    • eventorganiser_notify_confirmed_booking_message
    • eventorganiser_notify_confirmed_booking_subject
    • eventorganiser_notify_new_booking_message
    • eventorganiser_notify_new_booking_subject

    each pass the booking ID as the second parameter. From that you can get the event ID:

      $event_id = eo_get_booking_meta( $booking_id, 'event_id' );
    

    or the form ID:

      $form_id = get_post_meta( $booking_id, '_eo_booking_form', true )
    
    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.