function em_validate
-
I am very close the the solution and i need some help. I need make a check of em_tickets and if its above one, i need to check the booking_comments are filled out .. can someone give me any suggestions ?
function em_validate($result, $EM_Event){ if ($_REQUEST['em_tickets'] > 1 && $_REQUEST['booking_comment'] == ''){ $EM_Event->add_error('Fill out the comments'); $result = false; } return $result; } add_filter('em_booking_validate','em_validate', 1, 2);
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘function em_validate’ is closed to new replies.