wpDiscuz 7 API Documentation

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

wpdiscuz_container_classes

This filter can be used for changing the classes in the array of the classes assigned to the general wrapper.

Changelog

since 7.0.0 version

Parameters

$classes (type: array) – the array of the classes assigned to the general wrapper

Usage

add_filter("wpdiscuz_container_classes", function ($classes) {
    $classes[] = "my-custom-class";
    return $classes;
});

Was this article helpful to you? Yes No