On this page
do_action( 'untrashed_post', int $post_id, string $previous_status )
Fires after a post is restored from the Trash.
Parameters
$post_idint-
Post ID.
$previous_statusstring-
The status of the post at the point where it was trashed.
Source
File: wp-includes/post.php. View all references
do_action( 'untrashed_post', $post_id, $previous_status );
Related
Used By
| Used By | Description |
|---|---|
| wp_untrash_post() wp-includes/post.php | Restores a post from the Trash. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/untrashed_post