findstr_enable_filter_overlay

apply_filters( 'findstr_enable_filter_overlay', $enable_search_overlay bool )

  add_filter( 'findstr_enable_filter_overlay', $enable_search_overlay bool )

Filter to enable or disable the search overlay.
This filter is used to enable or disable the search overlay.

In the front-end, the search overlay is enabled only if used in a block or in menu item.
If you want to enable the search overlay in the front-end with custom code, you must use this filter to enable it.

Minimal markup example:

<a href="#" class="findstrOpenModal">Open Modal</a>

OR

<button class="findstrOpenModal">Open Modal</button>

Parameters

NameTypeDescription
$enable_search_overlaybool
Returns:

$enable_search_overlay

Type: 
bool