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
  • GravityView_Widget_Search::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/Widget/Types/SearchWidget.php at line 1426