[wp-trac] [WordPress Trac] #45114: Fire publishing related hooks after all data is saved via the REST API.
WordPress Trac
noreply at wordpress.org
Tue Oct 13 05:58:22 UTC 2020
#45114: Fire publishing related hooks after all data is saved via the REST API.
---------------------------+-----------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.6
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
---------------------------+-----------------------
Changes (by peterwilsoncc):
* keywords: dev-feedback has-patch => dev-feedback
Comment:
I've put together a pull request with a new hook and a new parameter on
`wp_insert_post()` to determine whether it should be called.
In terms of naming things I am not sure the ones I have chosen are the
best but they get the proof of concept out at the very least.
For the hook name, these are other items in my brain dump:
{{{
wp_save_post_final
wp_save_post_finalized
wp_save_post_complete
wp_save_post_terms_meta
wp_save_post_populated
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45114#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list