WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about untrashed_post

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php do_action 3708 /**
* Fires after a post is restored from the Trash.
*
* @since 2.9.0
* @since 5.6.0 The `$previous_status` parameter was added.
*
* @param int $post_id Post ID.
* @param string $previous_status The status of the post at the point where it was trashed.
*/

Hook Parameters

Parameter Type Name Description
int $post_id Post ID.
string $previous_status The status of the post at the point where it was trashed.