A WordPress-centric search engine for devs and theme authors



comments_template_top_level_query_args ›

Since5.6.0
Deprecatedn/a
apply_filters( 'comments_template_top_level_query_args', $top_level_args )
Parameters:
  • (array) $top_level_args { The top level query arguments for the comments template. @type bool $count Whether to return a comment count. @type string|array $orderby The field(s) to order by. @type int $post_id The post ID. @type string|array $status The comment status to limit results by. }
    Required: Yes
Defined at:
Codex:

Filters the arguments used in the top level comments query.





Source

$top_level_args = apply_filters( 'comments_template_top_level_query_args', $top_level_args );