Skip to main content

Filter: gk/gravityview/template/options

Filters the field options.

Parameters

NameTypeDescription
$field_optionsarrayArray of field options with label, value, type, default keys.
$field_type"widget"|"field"The field type (widget or field).
$template_idstringThe template ID.
$contextstringThe context (single or directory).
$groupedboolWhether the options should be grouped.
$form_idintThe form ID.
$field_idstringGF Field ID. Example: 3, 5.2, entry_link, created_by.
$input_typestringThe input type (textarea, list, select, etc.).

Since

  • 2.32.0
  • 2.57.0: Added $field_id and $input_type parameters.

Source

Defined in includes/admin/class.render.settings.php at line 327