-
Notifications
You must be signed in to change notification settings - Fork 32
Documentation for consent management-side #103
Copy link
Copy link
Open
Description
Hi!
Thanks for a great initiative!
I'm looking to implement support for WP Consent API in my cookie banner.
I've looked around for resources and guidance on how to do this, but could not really find anything "official" but I think I've managed to get something to work.
I'm basically:
- Adding the
wp_get_consent_typefilter and returnoptinbased on configuration. - Adding a client-side script that listens for events from the cookie banner and calls
wp_set_consentfor the relevant categories.
I can see new cookies (wp_consent_functional, wp_consent_marketing...) that get the correct value (allow or deny) based on the choices in the banner.
Is that it?
As the "consent providing" part of this, am I missing something? Or does someone know if there are any resources/documentation around the part I'm trying to implement?
Cheers!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.