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
| Name | Type | Description |
|---|---|---|
| $enabled | bool | Whether to scope searches per View. Default: true. |
| $view | \View|null | The View being evaluated, if known. |
Since
- 3.1.0
Source
Defined in src/Search/Querying/SearchScope.php at line 74