Hide Booking Button for Rejected User
-
I don’t want users who have been rejected for an event to continue seeing the booking button. Is there a way to hide this? There is a line of code in bookingbutton.php that checks booking_status
if( is_object($EM_Booking) && $EM_Booking->booking_status != 3...
When I try to echo the value for booking_status I don’t get anything unless it is value 1 (2 is what gets recorded when a registration is rejected) I have tried calling :
$EM_Bookings = $EM_Event->get_bookings()->get_rejected_bookings();
I get an array but I can’t seem to figure out how to find a way to get the booking status for the logged in user from this array. Any help or insight?
The topic ‘Hide Booking Button for Rejected User’ is closed to new replies.