apply_filters( 'RCB/Presets/Cookies/Middleware', $preset, $instance, $existingCookies, $existingBlocker, $result, $presetsInstance ) → {array}
Inject some middleware directly to the cookie preset. This can be useful to
enhance the preset with functionalities like `extends`.
Parameters:
Name | Type | Description |
---|---|---|
$preset |
array | The preset passed as reference |
$instance |
AbstractCookiePreset | Preset instance |
$existingCookies |
Array.<WP_Post> | |
$existingBlocker |
Array.<WP_Post> | |
$result |
Array.<array> | All collected presets (since 2.6.0); when requesting a single preset attributes, this can be of size 1 |
$presetsInstance |
Presets |
- Deprecated:
- Will be removed with Real Cookie Banner v3; use `RCB/Presets/Cookies/MiddlewareCallbacks` instead
Returns:
- Type
- array