pre_untrash_post

pre_untrash_post

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_untrash_post') is found 1 times:

  • /wp-includes/post.php line 3993
    3989
    3990
    3991
    3992
    3993
    3994
    3995
    3996
    3997
    3998
    3999
    * @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.