Filter: gk/gravityview/search/field/choices
Filters the choices for a Gravity Forms-backed search field.
Allows integrations to supply choices for field types that don't expose them on $field->choices (e.g., the Gravity Flow Assignee Select field).
Parameters
| Name | Type | Description |
|---|---|---|
| $choices | array\{value: string, text: string\}[] | The current choices. |
| $field | \GF_Field|null | The Gravity Forms field, or null for entry-meta types like payment_status. |
| $search_field | \Search_Field_Gravity_Forms | The search field instance. |
Since
Source
Defined in includes/search/fields/class-search-field-gravity-forms.php at line 407