[wp-trac] [WordPress Trac] #58392: Add $post parameter to the wp_trash_post action.
WordPress Trac
noreply at wordpress.org
Wed May 24 10:31:24 UTC 2023
#58392: Add $post parameter to the wp_trash_post action.
-------------------------------+-----------------------------
Reporter: mujuonly | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
The `$post` variable is already available in the `wp_trash_post()`
function so it can just be passed.
Should be the same for the below functions as well to maintain the
consistency
`trashed_post`
`untrash_post`
`untrashed_post`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58392>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list