apply_filters( 'get_page_of_comment_query_args', array $comment_args )
Filters the arguments used to query comments in get_page_of_comment().
Description
See also
Parameters
- $comment_args
-
Array of WP_Comment_Query arguments.<br>
- 'type'
(string) Limit paginated comments to those matching a given type.<br> Accepts 'comment', 'trackback', 'pingback', 'pings' (trackbacks and pingbacks), or 'all'. Default 'all'.<br> - 'post_id'
(int) ID of the post.<br> - 'fields'
(string) Comment fields to return.<br> - 'count'
(bool) Whether to return a comment count (true) or array of comment objects (false).<br> - 'status'
(string) Comment status.<br> - 'parent'
(int) Parent ID of comment to retrieve children of.<br> - 'date_query'
(array) Date query clauses to limit comments by. See WP_Date_Query.<br> - 'include_unapproved'
(array) Array of IDs or email addresses whose unapproved comments will be included in paginated comments.<br>
- 'type'
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |