wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_username_classes
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages


This filter can be used for adding new classes to the comment author name.


Since 7.0.0 version


$class (type: string) – the class that should be added to the comment author name div


add_filter("wpdiscuz_username_classes", function ($class) {
    $class .= " my-custom-username-class";
    return $class;

Was this article helpful to you? Yes No