untrash_post_comments

untrash_post_comments

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('untrash_post_comments') is found 1 times:

  • /wp-includes/post.php line 4153
    	 * @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: