untrashed_post_comments
Fires after comments are restored for a post from the Trash.
Usage
add_action( 'untrashed_post_comments', 'wp_kama_untrashed_post_comments_action' );
/**
* Function for `untrashed_post_comments` action-hook.
*
* @param int $post_id Post ID.
*
* @return void
*/
function wp_kama_untrashed_post_comments_action( $post_id ){
// action...
}
- $post_id(int)
- Post ID.
Changelog
| Since 2.9.0 | Introduced. |
Where the hook is called
untrashed_post_comments
wp-includes/post.php 4231
do_action( 'untrashed_post_comments', $post_id );