apply_filters( 'comments_template_query_args', array $comment_args )
Filters the arguments used to query comments in comments_template() .
Description
See also
Parameters
-
$comment_args
array -
Array of WP_Comment_Query arguments.
orderby
string|arrayField(s) to order by.order
stringOrder of results. Accepts'ASC'
or'DESC'
.status
stringComment status.include_unapproved
arrayArray of IDs or email addresses whose unapproved comments will be included in results.post_id
intID of the post.no_found_rows
boolWhether to refrain from querying for found rows.update_comment_meta_cache
boolWhether to prime cache for comment meta.hierarchical
bool|stringWhether to query for comments hierarchically.offset
intComment offset.number
intNumber of comments to fetch.
Source
File: wp-includes/comment-template.php
.
View all references
$comment_args = apply_filters( 'comments_template_query_args', $comment_args );
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |