no-user bookings – one per unique email
-
Hi,
I want to limit no-user reservations to one booking per email.
I tried this, but it doesn’t work:function em_validate($result, $EM_Event) { foreach($EM_Event->get_bookings() as $booking){ if (strcmp($booking->get_person()->user_email, $_REQUEST['user_email']) == 0){ $em_event->add_error('Email already exists.'); $result = false; break; } } return $result; } add_filter('em_booking_validate','em_validate', 1, 2);
Any ideas?
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘no-user bookings – one per unique email’ is closed to new replies.