Events Manager
[resolved] Limit the amount of times a particular user can reserve events (3 posts)

  1. eqhes
    Posted 3 years ago #


    I'm using:
    - WordPress 3.5
    - Events Manager 5.3.3

    Say that we have got 15 active events and we want that each user could reserve only a limited number of events (5, for example). Is this possible?

    Thank you in advance.


  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    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


    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 :)

  3. eqhes
    Posted 3 years ago #

    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! ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic