WP Manifestindependent plugin directory
manifest / privacy / consent_mode_wordpress

Universal Consent Mode WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

★ 0stars
14release downloads
v1.1.6latest · 7mo ago

Install

Download consent-mode.zip From the v1.1.6 release on GitHub, Feb 28, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/andrzejsaw/consent_mode_wordpress/releases/download/v1.1.6/consent-mode.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.

Universal Consent Mode (GCMv2)

Universal WordPress plugin for Google Consent Mode v2 – multilingual (EN, RU, UA, PL), stateless (No-DB), GDPR and Polish PKE 2024 compliant.

🇵🇱 Dokumentacja w języku polskim: README_PL.md


Features

  • 3-button consent model: Essential Only / Marketing / Accept All + Customize modal
  • Native <dialog> for granular per-category preferences (no polyfill required)
  • No-DB Architecture: consent stored in consent_preferences cookie only – no SQL tables
  • Google Consent Mode v2: gtag('consent', 'default'|'update', ...) with all 7 parameters
  • Google Tag Manager: optional auto-loading, validated GTM ID, noscript fallback
  • Script Guard: blocks tracking scripts until consent, dual-attribute (data-consent-category + data-rcm-consent), auto-reactivation
  • 4 Languages: EN, RU, UA, PL – auto-detected from WordPress locale (WPML/Polylang compatible)
  • Admin Language Manager: tabbed UI to edit all banner/modal texts per language
  • Revocation button: permanent floating cookie button on every page (GDPR Art. 7 compliant)
  • Geolocation: Cloudflare headers / WP timezone fallback – strict mode for EU/EEA users
  • Accessibility: ARIA roles, native focus trap, :focus-visible outlines

Requirements

  • WordPress 6.2+
  • PHP 8.1+

Quick Setup

  1. Activate plugin (consent-mode.php)
  2. Go to Settings → Consent Mode Settings
  3. Configure GTM Container ID (if needed)
  4. Add script handles to Script Guard categories
  5. Customize banner text in Language Manager tab

PHP Usage

// Check server-side consent (e.g., for inline analytics)
use ConsentMode\Consent\Consent;

if ( Consent::instance()->has_consent( 'analytics_storage' ) ) {
    // inject analytics
}

JavaScript Events

window.addEventListener( 'consentUpdated', ( e ) => {
    console.log( e.detail ); // { ad_storage: 'granted', ... }
} );

// Public API
window.ConsentBanner.openModal();
window.ConsentBanner.readConsentCookie();

Plugin Structure

consent-mode/
├── consent-mode.php              ← Main plugin file (v1.1.0+)
├── src/
│   ├── Admin/Admin.php           ← Settings API, Language Manager
│   ├── Consent/Bootstrap.php     ← GCMv2 default state + GTM loader
│   ├── Consent/Consent.php       ← Stateless cookie reader
│   ├── Front/Front.php           ← Banner rendering, assets, i18n
│   ├── Front/ScriptGuard.php     ← Script blocking/reactivation
│   └── Geo/Geo.php               ← Country detection
├── assets/
│   ├── css/banner.css
│   └── js/banner.js              ← ES6+, no jQuery, no AJAX
└── docs/POLITYKA_COOKIES.md      ← Cookie policy template (Polish)

Documentation

License

GPL v2 or later

Releases

2 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.1.6 latest
Feb 28, 2026 7mo ago
consent-mode.zip
10
Feb 28, 2026 7mo ago
consent-mode.zip
4
A grade

Security

Universal Consent Mode 1.1.6 · audited by WP Registry

No security issues found.

Audited release
1.1.6
Findings
none
Worst severity
—
Content hash
1582604b0cd1216662919898…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.