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