wphooks.info - pre_untrash_post

pre_untrash_post

(trunk - 5.0-alpha-43320)

The hook occurs in the following file:

wp-includes/post.php:
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
	}

	/**
	 * Filters whether a post untrashing should take place.
	 *
	 * @since 4.9.0
	 *
	 * @param bool    $untrash Whether to go forward with untrashing.
	 * @param WP_Post $post    Post object.
	 */
	$check = apply_filters( 'pre_untrash_post', null, $post );
	if ( null !== $check ) {
		return $check;
	}

	/**
	 * Fires before a post is restored from the trash.
	 *
	 * @since 2.9.0
	 *