apply_filters( 'comments_template_top_level_query_args', array $top_level_args )

Filters the arguments used in the top level comments query.


Description

Top ↑

See also


Top ↑

Parameters

$top_level_args array
The top level query arguments for the comments template.
  • countbool
    Whether to return a comment count.
  • orderbystring|array
    The field(s) to order by.
  • post_idint
    The post ID.
  • statusstring|array
    The comment status to limit results by.

Top ↑

Source

File: wp-includes/comment-template.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.6.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.