Skip to main content

Filter: gk/gravityview/search/scope-to-view

Controls whether a front-end search is scoped to the View it was performed on.

Returning false restores the legacy behavior: a single search bar filters every View on the page.

Parameters

NameTypeDescription
$enabledboolWhether to scope searches per View. Default: true.
$view\View|nullThe View being evaluated, if known.

Since

  • 3.1.0

Source

Defined in src/Search/Querying/SearchScope.php at line 74