Skip to main content

Filter: gravityview_widget_search_filters

Modify what fields are shown. The order of the fields in the $search_filters array controls the order as displayed in the search bar widget.

Parameters

NameTypeDescription
$search_fieldsarrayArray of search filters with key, label, value, type, choices keys
$widget\GravityView_Widget_SearchCurrent widget object
$widget_argsarray|nullArgs passed to this method. {@since 1.8}
$contextnull|string|\Template_Context{@since 2.0}
$positionstring|nullThe search field position {@since $ver$}

Source

Defined in includes/search/class-search-field-collection.php at line 539