Advertisement
eventsmanager

#_MAXSPACESPERBOOKING to display Maximum Bookings Allowed Per Booking

Jul 24th, 2023
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. /*
  2. * added #_MAXSPACESPERBOOKING to display Maximum Bookings Allowed Per Booking
  3. */
  4. add_filter('em_event_output_placeholder','my_em_maxspaces',1,3);
  5. function my_em_maxspaces($replace, $EM_Event, $result){
  6. if ( $result == '#_MAXSPACESPERBOOKING' ) {
  7. $replace = $EM_Event->event_rsvp_spaces;
  8. }
  9. return $replace;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement