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
Post Type Selectors

wpdiscuz_username_classes

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

Changelog

Since 7.0.0 version

Parameters

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

Usage

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

Was this article helpful to you? Yes No