getPluginConstantPrefix()
getPluginConstantPrefix(): string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
Middleware to add `blockerPresetIds` to the cookies so they are associated together.
This is useful to show a dropdown of available content blockers for a cookie preset.
middleware(array $preset,\DevOwl\RealCookieBanner\presets\AbstractCookiePreset $instance,array<mixed,\WP_Post> $existingCookies,array<mixed,\WP_Post> $existingBlockers)
See class description.
array | $preset | |
\DevOwl\RealCookieBanner\presets\AbstractCookiePreset | $instance | Preset instance |
array<mixed,\WP_Post> | $existingCookies | |
array<mixed,\WP_Post> | $existingBlockers |