Title: Hook for submit event form?
Last modified: September 29, 2017

---

# Hook for submit event form?

 *  Resolved [Damien du Toit](https://wordpress.org/support/users/codacoza/)
 * (@codacoza)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/hook-for-submit-event-form/)
 * I’m using the [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/) 
   plugin to connect my event post type to a second custom post type. This all works
   correctly and as expected on the WordPress admin side.
 * However I need to now update the “Submit an Event” form on the user side to support
   this new connection. Is there a hook or filter that I can use to run some custom
   code when the event form is submitted? The custom code basically just loops over
   an array (a new <select> field that I added to the form) and creates a new connection
   for each array item.
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/hook-for-submit-event-form/#post-9543491)
 * Yes, you can hook into em_event_save. If you need more info on how that functions
   works you might want to take a look at this file:
 * /events-manager/classes/em-event.php
 *  Thread Starter [Damien du Toit](https://wordpress.org/support/users/codacoza/)
 * (@codacoza)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/hook-for-submit-event-form/#post-9551511)
 * Thanks [@caimin_nwl](https://wordpress.org/support/users/caimin_nwl/), I’ll take
   a look!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hook for submit event form?’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 2 replies
 * 2 participants
 * Last reply from: [Damien du Toit](https://wordpress.org/support/users/codacoza/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/hook-for-submit-event-form/#post-9551511)
 * Status: resolved