[wp-trac] [WordPress Trac] #45114: Fire publishing related hooks after all data is saved via the REST API.

WordPress Trac noreply at wordpress.org
Wed Oct 14 22:35:36 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 has-patch  |     Focuses:
------------------------------------+-----------------------

Comment (by TimothyBlynJacobs):

 @peterwilsoncc What do you think about introducing a function for this
 like `wp_transition_post_status`. We're calling it in a number of places
 already, and I think we'd want to encourage plugin authors to use it
 whenever they have to follow a pattern where there are more updates they
 have to do after calling `wp_insert_post()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45114#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list