wpDiscuz 7 API Documentation

⌘K
  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentat...
  4. Filters
  5. wpdiscuz_comment_list_args

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;
});