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 | self | The search field instance. |
Since
- 2.59.0
Source
Defined in src/Search/Fields/SearchFieldGravityForms.php at line 432