Filter hook 'pre_untrash_post'

in WP Core File wp-includes/post.php at line 3824

Description

Filters whether a post untrashing should take place.

Occurrences

Filename Line Number
wp-includes/post.php 3824

Parameters

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.

PHP Doc

/**
	 * Filters whether a post untrashing should take place.
	 *
	 * @since 4.9.0
	 * @since 5.6.0 Added the `$previous_status` parameter.
	 *
	 * @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.
	 */