[wp-trac] [WordPress Trac] #58392: Add $post parameter to the wp_trash_post action.
WordPress Trac
noreply at wordpress.org
Mon Jun 26 20:55:20 UTC 2023
#58392: Add $post parameter to the wp_trash_post action.
--------------------------------------+-----------------------
Reporter: mujuonly | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.3
Component: Posts, Post Types | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"56043" 56043]:
{{{
#!CommitTicketReference repository="" revision="56043"
Posts, Post Types: Add a `$previous_status` parameter to `wp_trash_post()`
related hooks.
This adds a `$previous_status` parameter to the `pre_trash_post`,
`wp_trash_post`, and `trashed_post` hooks.
Props mujuonly, mukesh27, nihar007, dhruvishah2203, SergeyBiryukov,
costdev, hugod, audrasjb, oglekler.
Fixes #58392.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58392#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list