get_page_of_comment_query_args

最后更新于:2021-11-26 22:51:18

apply_filters( ‘get_page_of_comment_query_args’, array $comment_args )

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

参数

$comment_args

(array)
Array of GC_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 GC_Date_Query.
  • ‘include_unapproved’
    (array) Array of IDs or email addresses whose unapproved comments will be included in paginated comments.

源文件

文件: gc-includes/comment.php

View on Trac