Support

Home Forums Community Forum EE4 Hook When Venue is Saved

EE4 Hook When Venue is Saved

Posted: September 21, 2015 at 12:24 pm


David Lorimer

September 21, 2015 at 12:24 pm

Is there a hook for when a venue is saved/updated?

I’m wanting to add geolocation to the venues (lat+lon fields) so they can be searched by distance. So I want to look up the coords of a venue address whenever it is saved (and save them to the db). But I can’t find a list of hooks for EE4. Do you know if there is a hook there, and what it is?

Btw, lat/lon fields on the venue_meta would be an awesome addition to this plugin!


Josh

  • Support Staff

December 15, 2015 at 2:34 pm

You should be able to use the WordPress save_post action hook since venues are a custom post type.

The support post ‘EE4 Hook When Venue is Saved’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

If you would like help from the Event Espresso staff, then please purchase a support license right now so you can create a support topic in our premium support forums.

Status: closed

Updated by  Josh 3 years, 11 months ago ago

Topic Tags

Tagged: , , , ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!