WordPress / WordPress/wp-consent-level-api

Documentation for consent management-side

Open
#103 4 comments 0 reactions 0 assignees View on GitHub

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_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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.