wpDiscuz 7 API Documentation

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

wpdiscuz_comments_order

This filter is used to change the sorting type.

Changelog

Added in version 7.0.0

Parameters

1. $order (type: string) – the default type of the sorting

Usage

add_filter("wpdiscuz_comments_order", function ($order) {
    return "asc";
});

Was this article helpful to you? Yes No