Action hook 'untrashed_post'

in WP Core File wp-includes/post.php at line 3884

Description

Fires after a post is restored from the Trash.

Occurrences

Filename Line Number
wp-includes/post.php 3884

Parameters

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

PHP Doc

/**
	 * Fires after a post is restored from the Trash.
	 *
	 * @since 2.9.0
	 * @since 5.6.0 Added the `$previous_status` parameter.
	 *
	 * @param int    $post_id         Post ID.
	 * @param string $previous_status The status of the post at the point where it was trashed.
	 */