[wp-trac] [WordPress Trac] #63115: wp_insert_post missing do_action for pre_post_insert

WordPress Trac noreply at wordpress.org
Sun Jun 8 21:20:49 UTC 2025


#63115: wp_insert_post missing do_action for pre_post_insert
-------------------------------+-----------------------
 Reporter:  Hrohh              |       Owner:  audrasjb
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  6.9
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch commit   |     Focuses:
-------------------------------+-----------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60293" 60293]:
 {{{
 #!CommitTicketReference repository="" revision="60293"
 Posts, Post Types: Add `pre_post_insert` action hook before inserting a
 new post.

 This changeset adds a `pre_post_insert` action hook before inserting a new
 post via `wp_insert_post()`, allowing developers to modify or inspect post
 data before insertion. It brings consistency with the `pre_post_update`
 action hook triggered when a post is updated.

 Props Hrohh, peterwilsoncc, audrasjb.
 Fixes #63115.
 }}}

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


More information about the wp-trac mailing list