wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_comment_list_args
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

wpdiscuz_comment_list_args

This filter can be used for changing the arguments passed to wp_list_comments() function.

Changelog

Since 7.0.0 version

Parameters

$args (type: array) – the arguments passed to the wp_list_comments() function

Usage

add_filter("wpdiscuz_comment_list_args", function ($args) {
$args["reverse_top_level"] = true;
return $args;
});
</pre

Was this article helpful to you? Yes No