feat: PLG-130 - add WP Consent API categories integration#41
Merged
pleberre merged 3 commits intorelease/2.6.2from Feb 24, 2026
Merged
feat: PLG-130 - add WP Consent API categories integration#41pleberre merged 3 commits intorelease/2.6.2from
pleberre merged 3 commits intorelease/2.6.2from
Conversation
- Fix initialization bug (axeptioSettings → axeptioWpConsentCategories) - Add 5 WP Consent API categories as virtual vendors - Update consent directly without Google Consent Mode dependency - Refactor categories data to single source of truth - Add WordPress favicon for consent categories
There was a problem hiding this comment.
1 issue found across 12 files
Prompt for AI agents (all 1 issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="assets/js/frontend/axeptio.js">
<violation number="1" location="assets/js/frontend/axeptio.js:12">
P2: The `wp_consent_change` CustomEvent is no longer dispatched after consent is updated. This event is part of the WP Consent API specification and other consent-aware WordPress plugins may depend on it to react to consent changes. Consider dispatching the event after setting consents.</violation>
</file>
Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR
Collaborator
Author
|
The official WP Consent API event is wp_listen_for_consent_change. It is automatically dispatched by the wp_set_consent() function from the WP Consent API plugin on each call. Our code does call wp_set_consent() for every category on cookies:complete, so spec-compliant plugins still receive consent change notifications. |
pleberre
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by cubic
Adds native WP Consent API category integration to the Axeptio widget and syncs consent directly via wp_set_consent, independent of Google Consent Mode. Defaults all categories to deny on init and loads the WP Consent API when the plugin is active. Addresses PLG-130.
New Features
Bug Fixes
Written for commit f6ab6a4. Summary will update on new commits.