Customise Recipient for Booking Notifications

WordPress Event Management, Calendars & Registration Forums General Question Customise Recipient for Booking Notifications

This topic contains 3 replies, has 3 voices, and was last updated by  Stephen Harris 10 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8078

    Is it possible to customise the recipient for booking notifications, so that notification emails are sent to an address which is different to the admin email address configured in WordPress General Settings?

    Pixelatic
    #8082

    I’m afraid not, but I’ll be including this in the 1.5 update.

    With that update you can change admin’s email with the following:

    add_filter( 'eventorganiser_admin_email', 'pixelatic_set_admin_email' );
    function pixelatic_set_admin_email(){
        return 'foo@bar.com';
    }

    (If you wish, in the mean time, to edit the source of the plug-in, the relevant file is includes/booking-actions.php

    Stephen Harris
    #10266

    Hi Stephen,

    is ist also possible to send the notification emails to multiple email addresses, and if so, what to return in the before mentioned filter callback function?

    Thanks
    Stefan

    Stefan Hausmann
    #10278

    Hi Stefan,

    Yes you can, the notification e-mails are filtered by eventorganiser_booking_notification_email. By default, it includes only the admin e-mail (which can be filtered using the code in previous comment).

    add_filter( 'eventorganiser_booking_notification_email', 'my_booking_notification_email', 10, 2 );
    function my_booking_notification_email( $emails, $booking_id ){
          //Change $email;
          return $emails;        
    }
    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 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.