New and Modified Event

Home Forums Calendar Products Events Calendar PRO New and Modified Event

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #151694
    cnh
    Participant

    Hello there!

    Is it possible to identify when a user is submitting a new event and when a user is submitting a modified event? I just want to create a logic so that user can’t submit any new event after publishing 3 events but they can modify existing ones. I’ve checked edit-event.php file but can’t understand properly where to edit.

    #151858
    Barry
    Member

    Hi!

    Please note that I’m going to move this thread across to the Community Events forum as that seems like a better home for it – however the URL should stay the same and you should also remain subscribed to any updates 🙂

    When a submission takes place, regardless of whether the event is new or an update for an existing one, the tribe_ce_before_event_submission_page action should fire. You could definitely use this to add your own code that tests to see who the current user is, and query to see how many events they have already authored – then take appropriate action from there.

    Does that help at all?

    #701424
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘New and Modified Event’ is closed to new replies.