wpDiscuz 7 API Documentation

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

wpdiscuz_avatar_classes

This filter can be used for adding some classed in the avatar.

Changelog

Since 7.0.0 version

Parameters

$class (type: string) – the class that will be added in the wrapper div of the avatar

Usage

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

Was this article helpful to you? Yes No