wpDiscuz 7 API Documentation

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

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;
});

Was this article helpful to you? Yes No