WordPress / WordPress/wp-consent-level-api
Documentation for consent management-side
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 92
- Forks
- 36
- Avg merge
- 2m
- Merged PRs (30d)
- 7
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start with the WP Consent API entry points mentioned here, especially the wp_get_consent_type filter and wp_set_consent call, and review how consent-management integrations are expected to use them. Done means documenting the consent-provider flow and clarifying whether these steps are complete or what is missing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- api, documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100