Action: RCB/Consent/SetCookie

do_action( 'RCB/Consent/SetCookie', $cookieName, $cookieValue, $result, $revoke, $uuid, $uuids )

Real Cookie Banner saved the cookie which holds information about the user with UUID, revision and consent choices.

Parameters:
Name Type Description
$cookieName string
$cookieValue string
$result boolean

Got the cookie successfully created?

$revoke boolean

true if the cookie should be deleted

$uuid string | null
$uuids Array.<string>

Since v3 multiple consent UUIDs are saved to the database

array
Since:
  • 2.0.0
Deprecated:
  • This will removed in a future release!