apply_filters( 'comments_array', array $comments, int $post_ID )

Filters the comments array.

Parameters

$comments

(array) Array of comments supplied to the comments template.

$post_ID

(int) Post ID.

More Information

Used inside comments_template that allows you to catch all the comments going through the query for the post.

Source

File: wp-includes/comment-template.php

View on Trac

Changelog

Version Description
2.1.0 Introduced.