On this page
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_argsarray-
Array of WP_Comment_Query arguments.
typestringLimit paginated comments to those matching a given type.
Accepts'comment','trackback','pingback','pings'(trackbacks and pingbacks), or'all'. Default'all'.post_idintID of the post.fieldsstringComment fields to return.countboolWhether to return a comment count (true) or array of comment objects (false).statusstringComment status.parentintParent ID of comment to retrieve children of.date_queryarrayDate query clauses to limit comments by. See WP_Date_Query.include_unapprovedarrayArray of IDs or email addresses whose unapproved comments will be included in paginated comments.
Source
File: wp-includes/comment.php. View all references
$comment_args = apply_filters( 'get_page_of_comment_query_args', $comment_args );
Related
Used By
| Used By | Description |
|---|---|
| get_page_of_comment() wp-includes/comment.php | Calculates what page number a comment will appear on for comment paging. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_page_of_comment_query_args