wpDiscuz 7 API Documentation

⌘K
  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentat...
  4. Filters
  5. wpdiscuz_allowed_form_field

wpdiscuz_allowed_form_field

This filter can be used for adding or deleting field type in the form.

Changelog

Since 7.0.0 version

Parameters

$allowedFieldsType (type: array) - the array of the allowed fields of the forms

Usage

add_filter("wpdiscuz_allowed_form_field", function ($allowedFieldsType) {
    $allowedFieldsType[] = "MyCustomFieldClass";
    return $allowedFieldsType;
});