WordPress at Your Fingertips
filter is not described

pre_untrash_post filter-hook . WP 4.9.0

Filters whether a post untrashing should take place.


add_filter( 'pre_untrash_post', 'filter_function_name_7365', 10, 3 );
function filter_function_name_7365( $untrash, $post, $previous_status ){
	// filter...

	return $untrash;
Whether to go forward with untrashing.
Post object.
The status of the post at the point where it was trashed.


Since 4.9.0 Introduced.
Since 5.6.0 The $previous_status parameter was added.

Where the hook is called

wp-includes/post.php 3366
$check = apply_filters( 'pre_untrash_post', null, $post, $previous_status );

Where in WP core the hook is used WordPress

Usage not found.