wpDiscuz 7 API Documentation

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

wpdiscuz_form_custom_fields

This filter can be used for adding new field types in the popup of the form editing page.

Changelog

Since 7.0.0 version

Parameters

$fields (type: array) – the array of the custom fields that should be added in the popup of the form editing page

Usage

add_filter("wpdiscuz_form_custom_fields", function ($allowedFieldsType) {
    $allowedFieldsType[] = [
        "type" => "customType",
        "title" => "CustomField",
    ];
    return $allowedFieldsType;
});

Was this article helpful to you? Yes No