Skip to main content

Filter: gravityview/search/searchable_fields

Modify the fields that are displayed as searchable in the Search Bar dropdown.

Parameters​

NameTypeDescription
$fieldsarrayArray of searchable fields, as fetched by gravityview_get_form_fields().
$form_idintThe form ID.

See Also​

  • gravityview_get_form_fields() - Used to fetch the fields.
  • SearchWidget::get_search_input_types - See this method to modify the type of input types allowed for a field.

Since​

  • 1.17

Source​

Defined in src/Search/SearchFieldCollection.php at line 213