You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are managing a Wordpress-Multisite-Network, thats publishes new and updated Posts into an external API. We are using the wp_insert_post-Hook to get all the data and publish it to the API.
With the classic Editor, when wp_insert_post is called, all Term-Data is saved and a call of wp_get_post_terms gets me the data.
With the current Gutenberg on the Beta-Wordpress-Nightly-Build, this Behaviour seems to have changed. When the wp_insert_post is called the Term-Data is not available, but if you save the post again, it is.
I suspect the that the saving of Terms moved to a later Point in Gutenberg. Is that right?
So my questions are:
Is this expected behaviour?
Is there a way to hook into the end of gutenberg-save-process when all Data is saved?
The text was updated successfully, but these errors were encountered:
Thank you for the issue, @carstenwawer! This is caused by the REST API updating posts slightly differently to how the current post editor updates them.
Unfortunately, there currently isn't an action triggered after all post data has been saved via the REST API, I've opened a Core ticket to get one added in.
Issue Overview
Hi,
we are managing a Wordpress-Multisite-Network, thats publishes new and updated Posts into an external API. We are using the wp_insert_post-Hook to get all the data and publish it to the API.
With the classic Editor, when wp_insert_post is called, all Term-Data is saved and a call of wp_get_post_terms gets me the data.
With the current Gutenberg on the Beta-Wordpress-Nightly-Build, this Behaviour seems to have changed. When the wp_insert_post is called the Term-Data is not available, but if you save the post again, it is.
I suspect the that the saving of Terms moved to a later Point in Gutenberg. Is that right?
So my questions are:
Is this expected behaviour?
Is there a way to hook into the end of gutenberg-save-process when all Data is saved?
The text was updated successfully, but these errors were encountered: