Skip to main content

Filter: gravityview_template_{$field_type}_options

Deprecated

Deprecated since 2.55. Use gk/gravityview/template/options instead.

Filters the field options by field type. Filter names: gravityview_template_field_options and gravityview_template_widget_options.

Parameters​

NameTypeDescription
$field_optionsarrayArray of field options with label, value, type, default keys.
$template_idstringTable slug.
$field_idfloatGF Field ID - Example: 3, 5.2, entry_link, created_by.
$contextstringWhat context are we in? Example: single or directory.
$input_typestring(textarea, list, select, etc.).
$form_idintThe form ID. {@since 2.5}

Source​

Defined in src/Admin/Rendering/RenderSettings.php at line 327