Suppress emails

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

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

    Hi Stephen
    I’d like to suppress all the email sent by the system and write my own. Can you tell me how to stop the system sending emails please.

    Cheers
    Stuart

    Stuart Farish
    #9281

    You can do the following

    add_filter( 'eventorganiser_notify_confirmed_booking', 'my_notify_confirm_booking_function' );
    function my_notify_confirm_booking_function(){
        //Run whenever a booking is confirmed.
    
       //Optionally do something here
    
      //Return false to prevent automatic e-mail sent by plug-in
      //Return true to continue with e-mail sent by plug-in
       return false;
    }

    The admin e-mail sent when a booking is made can be disabled via the Bookings settings tab.

    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.