Create post and update in the same flow
Intro: I'm using a weird plugin called The Events Calendar which vastly operates outside of WP functions. For example, I cannot retrieve custom fields with the WP function.
So essentially, my problem is that I need to update a different post type from the custom content posted in an Events Calendar CPT but I can only retrieve it, after the post has fully been saved, not on "save_post" action hook because there is no post meta information at that moment.
So here is my question:
Is there any possibility to introduce an update in post immediately after the save post action? Which options are best recommended
One idea I have is to use another save_post action with less priority that the former that introduces the update function. But not sure if this the post optimal mechanism.
BTW in case anyone has already dealt with The Events Calendar and has a shortcut, what I actually need to do, is, when an Event from The Events Calendar is saved I need to store the event start date in a different CPT.
Topic the-events-calendar save-post custom-post-types Wordpress
Category Web