[wp-trac] [WordPress Trac] #60433: Adding delete_post_{$post->post_type} action hook

WordPress Trac noreply at wordpress.org
Tue Mar 19 09:31:38 UTC 2024


#60433: Adding delete_post_{$post->post_type} action hook
-------------------------------+-------------------------
 Reporter:  gerardreches       |       Owner:  swissspidy
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  6.6
Component:  Posts, Post Types  |     Version:
 Severity:  minor              |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+-------------------------
Changes (by swissspidy):

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


Comment:

 In [changeset:"57853" 57853]:
 {{{
 #!CommitTicketReference repository="" revision="57853"
 Posts, Post Types: Introduce `delete_post_{$post->post_type}` and
 `deleted_post_{$post->post_type}` hooks.

 The hooks fire before the general `delete_post` / `deleted_post` hooks and
 have the same parameters.

 They complement the `save_post_{$post->post_type}` hook added in [25050]
 and the `edit_post_{$post->post_type}` hook added in [43617].

 Props benniledl, swissspidy, dargus.
 Fixes #60433.
 }}}

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


More information about the wp-trac mailing list