bsearch_allow_offsite_redirect
Filter whether a search redirect may send visitors off-site.
Type: filter
Since: 4.4.0
Source: includes/class-search-redirects.php line 383
Parameters
| Type | Name | Description |
|---|---|---|
bool |
$allowed |
Whether the off-site redirect is allowed. |
string |
$destination |
Absolute destination URL. |
array |
$rule |
The matched rule. |
Usage
add_filter( 'bsearch_allow_offsite_redirect', function($allowed, $destination, $rule) {
// ...
return $allowed;
} );