pre_untrash_post

pre_untrash_post

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_untrash_post') is found 1 times:

  • /wp-includes/post.php line 3993
    	 * @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.