Filters the arguments used to query comments in get_page_of_comment() .
Description
See also
Parameters
$comment_args
array- Array of WP_Comment_Query arguments.
type
stringLimit paginated comments to those matching a given type.
Accepts'comment'
,'trackback'
,'pingback'
,'pings'
(trackbacks and pingbacks), or'all'
. Default'all'
.post_id
intID of the post.fields
stringComment fields to return.count
boolWhether to return a comment count (true) or array of comment objects (false).status
stringComment status.parent
intParent ID of comment to retrieve children of.date_query
arrayDate query clauses to limit comments by. See WP_Date_Query.include_unapproved
arrayArray of IDs or email addresses whose unapproved comments will be included in paginated comments.
Source
$comment_args = apply_filters( 'get_page_of_comment_query_args', $comment_args );
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.