Filter: RCB/Presets/Blocker/Middleware

apply_filters( 'RCB/Presets/Blocker/Middleware', $preset, $instance, $existingBlockers, $existingCookies, $result, $presetsInstance ) → {array}

Inject some middleware directly to the content blocker 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
$existingBlockers Array.<WP_Post>
$existingCookies 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/Blocker/MiddlewareCallbacks` instead
Returns:
Type
array