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_fieldselfThe search field instance.

Since

  • 2.59.0

Source

Defined in src/Search/Fields/SearchFieldGravityForms.php at line 432