apply_filters( 'get_page_of_comment_query_args', array $comment_args )

Filters the arguments used to query comments in get_page_of_comment() .


Description

Top ↑

See also


Top ↑

Parameters

$comment_args array
Array of WP_Comment_Query arguments.
  • typestring
    Limit paginated comments to those matching a given type.
    Accepts 'comment', 'trackback', 'pingback', 'pings' (trackbacks and pingbacks), or 'all'. Default 'all'.
  • post_idint
    ID of the post.
  • fieldsstring
    Comment fields to return.
  • countbool
    Whether to return a comment count (true) or array of comment objects (false).
  • statusstring
    Comment status.
  • parentint
    Parent ID of comment to retrieve children of.
  • date_queryarray
    Date query clauses to limit comments by. See WP_Date_Query.
  • include_unapprovedarray
    Array of IDs or email addresses whose unapproved comments will be included in paginated comments.

Top ↑

Source

File: wp-includes/comment.php. View all references

$comment_args = apply_filters( 'get_page_of_comment_query_args', $comment_args );


Top ↑

Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.