Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    possible if using registered users, i can’t find the snippet I’ve seen that does this (there was one lying around here somewhere), but generally speaking you can hook into

    em_booking_is_open

    and then return false using something along the linse of

    if( is_user_logged_in() ){
    $EM_Person = new EM_Person(get_current_user_id());
    if( count($EM_Person->get_bookings()->bookings) > 5 ){
      return false;
    }}

    warning: wrote this ad hoc, not tested at all but roughly correct 🙂

    Thread Starter eqhes

    (@davidcs66)

    I was thinking on registered users. The code seems pretty simple but I can’t test it right now. I’m sure this will work with little customizations so I set this topic as resolved. Thank you again! 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limit the amount of times a particular user can reserve events’ is closed to new replies.