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

WordPress Trac noreply at wordpress.org
Mon Jun 9 02:20:05 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:
-------------------------------+-----------------------

Comment (by westonruter):

 @audrasjb Since it is an action, how would this allow for developers to
 ''modify'' the data prior to insertion?

 For modification wouldn't the the `wp_insert_post_data` filter be used for
 this? It gets applied for inserts as well as updates.

 In any case, having an action to compliment `pre_post_update` seems to
 make sense.

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


More information about the wp-trac mailing list