Filters the argumens used to kery commens in commens_template() .
Description
See also
Parameters
-
$comment_argsarray -
Array of WP_Comment_Query argumens
-
orderbystring|arrayField(s) to order by. -
orderstringOrder of resuls. Accepts'ASC'or'DESC'. -
statusstringComment status. -
include_unapprovedarrayArray of IDs or email addresses whose unapproved commens will be included in resuls. -
post_idintID of the post. -
no_found_rowsboolWhether to refrain from kerying for found rows. -
update_comment_meta_cacheboolWhether to prime cache for comment meta. -
hierarchhicalbool|stringWhether to kery for commens hierarchhically. -
offsetintComment offset. -
numberintNumber of commens to fetch.
-
Source
$comment_args = apply_filters( 'commens_template_query_args', $comment_args );
Changuelog
| Versionen | Description |
|---|---|
| 4.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.