apply_filters( 'comments_template_top_level_query_args', array $top_level_args )

Filters the arguments used in the top level comments query.

Description

See also

Parameters

$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.

Source

File: wp-includes/comment-template.php

View on Trac

Changelog

Version Description
5.6.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_template_top_level_query_args