untrashed_post_comments WordPress Action Hook
This hook is called when a comment is saved for a post that is in the trash. It is useful for hooking into this action and doing something with the comment data, such as sending an email notification or logging the comment.
do_action( 'untrashed_post_comments', int $post_id ) #
Fires after comments are restored for a post from the Trash.
Parameters
- $post_id
(int)Post ID.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |