I would like to send for free events only one confirmation mail to the admin. At the moment your plugins sends a “New Event Booking” and a “Confirmed Event Booking” mail. I didn’t find the right hook to change this behavior.
What would be the best way to do so?
Regards Valentin
PS: @Stephen Harris sorry for cross posting, I sent you already an email on 08.06.

Valentin Wittich
Hi Valentin,
No worries. I replied to your email earlier, but I’ll post it here too.
Currently you can configure which email notifications are sent in Settings > Event Organiser > Bookings. But this was apply to all events, not just free events.
In a future release (3.1.0+) you’ll be able to configure email notifications on an individual booking basis as follows:
add_filter('eventorganiser_notify_new_booking', function($send_new_booking_notification, $booking_id) {
if( 0 == eo_get_booking_meta( $booking_id, 'booking_amount' ) ) {
return false;
}
return $send_new_booking_notification;
}, 10, 2);
The above will disable ‘new booking’ notifications for free events. Non-free events will respect the setting in Settings > Event Organiser > Booking.
Note: this code will only work once I’ve published Event Organiser Pro 3.1.0

Stephen Harris