Hook on event creation

Home Forums Calendar Products Events Calendar PRO Hook on event creation

  • This topic has 3 replies, 2 voices, and was last updated 7 years ago by Matthew.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1271790
    Matthew
    Participant

    I would like to modify some of the content once the event has been created.

    Am I able to run a function when an event is created?

    I can’t find a list of hooks in your docs anywhere.

    I could use a hook for event deletion too.

    Possibly using something like this?
    https://codex.wordpress.org/Plugin_API/Action_Reference/delete_post
    https://codex.wordpress.org/Plugin_API/Action_Reference/save_post

    I just need to know how to hook into Tribe Event posts specifically.

    #1272395
    Cliff
    Member

    Hi, Matthew.

    Thanks for your detailed question.

    From that save_post link, for example:

    As of WP 3.7, an alternative action has been introduced, which is called for specific post types: save_post_{post_type}

    Therefore, you could use the save_post_tribe_events hook.

    Note that Organizers and Venues are different post types but should work in the same way.

    Please let me know if you have any follow-up questions on this topic.

    #1283113
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hook on event creation’ is closed to new replies.