Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/post.php | do_action | 3662 | /** * Fires before 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. |