Make Submission Form Event Owner and Email Optional

Nov 21st, 2018
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2. * this function will make frontend event submission
  3. */
  4. function custom_event_validate($EM_Event, $validate_post){
  6. if( empty($EM_Event->event_owner_name) || empty($EM_Event->event_owner_email) ){
  7. $validate_post = true;
  8. }
  10. return $validate_post;
  11. }
  12. add_filter('em_event_validate','custom_event_validate',10,2);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.