get_page_of_comment_query_args WordPress Filter Hook

The get_page_of_comment_query_args hook is used to retrieve the page number of a comment. This hook is useful for retrieving the page number of a comment so that you can display it on your website.

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.

  • 'type'
    (string) Limit paginated comments to those matching a given type. Accepts 'comment', 'trackback', 'pingback', 'pings' (trackbacks and pingbacks), or 'all'. Default 'all'.
  • 'post_id'
    (int) ID of the post.
  • 'fields'
    (string) Comment fields to return.
  • 'count'
    (bool) Whether to return a comment count (true) or array of comment objects (false).
  • 'status'
    (string) Comment status.
  • 'parent'
    (int) Parent ID of comment to retrieve children of.
  • 'date_query'
    (array) Date query clauses to limit comments by. See WP_Date_Query.
  • 'include_unapproved'
    (array) Array of IDs or email addresses whose unapproved comments will be included in paginated comments.


Top ↑

Source

File: wp-includes/comment.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More