pre_untrash_post

pre_untrash_post

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('pre_untrash_post') is found 1 times:

  • /wp-includes/post.php line 3761
    	 * @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.
    	 */
    	$check = apply_filters( 'pre_untrash_post', null, $post, $previous_status );
    	if ( null !== $check ) {
    		return $check;
    	}
    
    	/**
    	 * Fires before a post is restored from the Trash.