gaddon_no_output_field_properties

Description

Some non-standard HTML properties are not output to the field HTML by default. This filter allows you to allow or deny specific properties to be added to the field HTML.

Usage

The following would apply to all forms.

add_filter( 'gaddon_no_output_field_properties', 'your_function_name' );

Parameters

ParameterTypeDescription
$propertiesarrayArray of properties not allowed.
$fieldForm ObjectThe current field meta to be parsed.

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Source Code

This filter is located in class-gf-addon.php.