the_comments WordPress Filter Hook
The the_comments hook is used to display comments for a post. It is called before the comments are displayed.
apply_filters_ref_array( 'the_comments', WP_Comment[] $_comments , WP_Comment_Query $query ) #
Filters the comment query results.
Parameters
- $_comments
(WP_Comment[])An array of comments.
- $query
(WP_Comment_Query)Current instance of WP_Comment_Query (passed by reference).
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |