WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_untrash_post

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php apply_filters 3648 /**
* Filters whether a post untrashing should take place.
*
* @since 4.9.0
* @since 5.6.0 The `$previous_status` parameter was added.
*
* @param bool|null $untrash Whether to go forward with untrashing.
* @param WP_Post $post Post object.
* @param string $previous_status The status of the post at the point where it was trashed.
*/

Hook Parameters

Parameter Type Name Description
bool|null $untrash Whether to go forward with untrashing.
WP_Post $post Post object.
string $previous_status The status of the post at the point where it was trashed.