untrashed_post

untrashed_post

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

do_action('untrashed_post') is found 1 times:

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