apply_filters_ref_array( ‘the_comments’, WP_Comment[] $_comments, WP_Comment_Query $query )

In this article

Filters the comment query results.

Parameters

$_commentsWP_Comment[]
An array of comments.
$queryWP_Comment_Query
Current instance of WP_Comment_Query (passed by reference).

Source

$_comments = apply_filters_ref_array( 'the_comments', array( $_comments, &$this ) );

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.