On this page
apply_filters( 'comments_template_query_args', array $comment_args )
Filters the arguments used to query comments in comments_template() .
Description
See also
Parameters
$comment_argsarray-
Array of WP_Comment_Query arguments.
orderbystring|arrayField(s) to order by.orderstringOrder of results. Accepts'ASC'or'DESC'.statusstringComment status.include_unapprovedarrayArray of IDs or email addresses whose unapproved comments will be included in results.post_idintID of the post.no_found_rowsboolWhether to refrain from querying for found rows.update_comment_meta_cacheboolWhether to prime cache for comment meta.hierarchicalbool|stringWhether to query for comments hierarchically.offsetintComment offset.numberintNumber of comments to fetch.
Source
File: wp-includes/comment-template.php. View all references
$comment_args = apply_filters( 'comments_template_query_args', $comment_args );
Related
Used By
| Used By | Description |
|---|---|
| comments_template() wp-includes/comment-template.php | Loads the comment template specified in $file. |
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_template_query_args