untrashed_post

untrashed_post

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('untrashed_post') is found 1 times:

  • /wp-includes/post.php line 4053
    4049
    4050
    4051
    4052
    4053
    4054
    4055
    4056
    4057
    4058
    4059
         *
         * @param int    $post_id         Post ID.
         * @param string $previous_status The status of the post at the point where it was trashed.
         */
        do_action( 'untrashed_post', $post_id, $previous_status );
     
        return $post;
    }
     
    /**
     * Moves comments for a post to the Trash.

See this hook used in plugins: