On this page
apply_filters( 'pre_untrash_post', bool|null $untrash, WP_Post $post, string $previous_status )
Filters whether a post untrashing should take place.
Parameters
$untrashbool|null-
Whether to go forward with untrashing.
$postWP_Post-
Post object.
$previous_statusstring-
The status of the post at the point where it was trashed.
Source
File: wp-includes/post.php. View all references
$check = apply_filters( 'pre_untrash_post', null, $post, $previous_status );
Related
Used By
| Used By | Description |
|---|---|
| wp_untrash_post() wp-includes/post.php | Restores a post from the Trash. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_untrash_post