comments_template_query_args

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'comments_template_query_args', array $comment_args )

Parameters Parameters

$comment_args

Array of WP_Comment_Query arguments.

  • 'orderby'
    (string|array) Field(s) to order by.
  • 'order'
    (string) Order of results. Accepts 'ASC' or 'DESC'.
  • 'status'
    (string) Comment status.
  • 'include_unapproved'
    (array) Array of IDs or email addresses whose unapproved comments will be included in results.
  • 'post_id'
    (int) ID of the post.
  • 'no_found_rows'
    (bool) Whether to refrain from querying for found rows.
  • 'update_comment_meta_cache'
    (bool) Whether to prime cache for comment meta.
  • 'hierarchical'
    (bool|string) Whether to query for comments hierarchically.
  • 'offset'
    (int) Comment offset.
  • 'number'
    (int) Number of comments to fetch.

Source Source

File: wp-includes/comment-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

See also See also

Advertisement

Leave a Reply