Filter: gk/gravityview/template/options/pre-context
Filters the typed field options before context filtering.
Unlike gk/gravityview/template/options, this runs before options are filtered by their contexts key, so added options are context-filtered.
Parameters
| Name | Type | Description |
|---|---|---|
| $field_options | array | Array of field options with label, value, type, default keys. |
| $field_type | string | The object type: field, widget, search, or a specific type name. |
| $template_id | string | The template ID. |
| $field_id | string | GF Field ID. Example: 3, 5.2, entry_link, created_by. |
| $context | string | What context are we in? Example: single or directory. |
| $input_type | string | The input type (textarea, list, select, etc.). |
| $form_id | int | The form ID. |
Since
- 3.1.0
Source
Defined in src/Admin/Rendering/RenderSettings.php at line 303