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).


Top ↑

Source

File: wp-includes/class-wp-comment-query.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.