WordPress at a glance
filter is not described

comments_array filter-hook . WP 2.1.0

Filters the comments array.


add_filter( 'comments_array', 'filter_function_name_3578', 10, 2 );
function filter_function_name_3578( $comments, $post_ID ){
	// filter...

	return $comments;
Array of comments supplied to the comments template.
Post ID.

Where the hook is called

wp-includes/comment-template.php 1448
$wp_query->comments = apply_filters( 'comments_array', $comments_flat, $post->ID );

Where the hook is used (in WP core)

Does not used.