crp_cache_busting_settings
Filters the settings that flush the cache when they change on save.
Register any setting that changes which posts a query returns, or in which order.
Type: filter
Since: 4.5.0
Source: includes/admin/class-settings.php line 2221
Parameters
| Type | Name | Description |
|---|---|---|
string[] |
$keys |
Setting keys that invalidate cached results. |
array |
$settings |
Sanitized settings being saved. |
Usage
add_filter( 'crp_cache_busting_settings', function($keys, $settings) {
// ...
return $keys;
} );