wpDiscuz 7 API Documentation

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

wpdiscuz_allowedtags

This filter can be used for changing the array of the tags and attributes allowed in the comment content.

Changelog

since 7.0.0 version

Parameters

$allowedtags (type: array) – the array of the tags and attributes allowed in the comment content

Usage

add_filter("wpdiscuz_allowedtags", function ($allowedtags) {
    $allowedtags["wbr"] = true;
    return $allowedtags;
});

Was this article helpful to you? Yes No