Skip to main content

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

NameTypeDescription
$choicesarray\{value: string, text: string\}[]The current choices.
$field\GF_Field|nullThe Gravity Forms field, or null for entry-meta types like payment_status.
$search_field\Search_Field_Gravity_FormsThe search field instance.

Since

Source

Defined in includes/search/fields/class-search-field-gravity-forms.php at line 407