bsearch_cache_get_keys
Filters the list of Better Search cache keys found in the options table.
Type: filter
Since: 4.0.0
Source: includes/util/class-cache.php line 158
Changelog
| Version | Description |
|---|---|
4.5.0 |
Added the $network parameter. |
4.0.0 |
Introduced. |
Parameters
| Type | Name | Description |
|---|---|---|
string[] |
$keys |
Cache keys without the transient prefix. |
bool |
$network |
Whether network (site) transients were looked up. |
Usage
add_filter( 'bsearch_cache_get_keys', function($keys, $network) {
// ...
return $keys;
} );