Filter: RCB/Consent/DynamicPreDecision

apply_filters( 'RCB/Consent/DynamicPreDecision', $result, $request ) → {boolean|string}

Before the banner gets shown to the user, this WP REST API request is called. Please do only add a filter to this hook if your option is active (e.g. Country Bypass only when active), this avoids the request when no dynamic predecision can be made.

The result must be one of this: ('all'|'dnt'|'consent'|'nothing').

Parameters:
Name Type Description
$result boolean | string
$request WP_REST_Request
Since:
  • 2.0.0
Returns:
Type
boolean | string