Custom booking emails for each event or each catagory

WordPress Event Management, Calendars & Registration Forums Request A Feature Custom booking emails for each event or each catagory

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 5 months, 2 weeks ago.

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

    Hi

    Is there a way i can set up custom booking emails for each event category, or ideally each event?

    Thanks
    Laurence

    Laurence Manchee
    #44163

    Hi Laurence,

    Yes, there is the eventorganiser_booking_confirmed_email_body filter which allows you to change the email content, it passes the ‘original’ email context as the first argument and the booking ID as the second.

    From the second argument you can get the event ID:

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

    so you can use that to change the content of the email.You could go as far as creating a custom field for an event and over-riding the email content with that field. Note that the filter is applied to. after any email template tags have been rendered, if you wish to use any of those tags inside that filter you will need to apply the function eventorganiser_email_template_tags before returning the email body.

    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.