comments_template_top_level_query_args

最后更新于:2021-11-26 01:09:19

apply_filters( ‘comments_template_top_level_query_args’, array $top_level_args )

Filters the arguments used in the top level comments query.

参数

$top_level_args

(array)
The top level query arguments for the comments template.

  • ‘count’
    (bool) Whether to return a comment count.
  • ‘orderby’
    (string|array) The field(s) to order by.
  • ‘post_id’
    (int) The post ID.
  • ‘status’
    (string|array) The comment status to limit results by.

源文件

文件: gc-includes/comment-template.php

View on Trac