untrash_post_comments

untrash_post_comments

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.3.2

do_action('untrash_post_comments') is found 1 times:

  • /wp-includes/post.php line 3334
    	 * @since 2.9.0
    	 *
    	 * @param int $post_id Post ID.
    	 */
    	do_action( 'untrash_post_comments', $post_id );
    
    	// Restore each comment to its original status.
    	$group_by_status = array();
    	foreach ( $statuses as $comment_id => $comment_status ) {
    		$group_by_status[ $comment_status ][] = $comment_id;
    	}
    

See this hook used in plugins: