Skip to content

Documentation for consent management-side #103

@enkelmedia

Description

@enkelmedia

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_type filter and return optin based on configuration.
  • Adding a client-side script that listens for events from the cookie banner and calls wp_set_consent for 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions