跳到内容

Consent Warden

v1.0.1

linuxgnut · 2026年8月19日 上架

Simple cookie consent banner for GDPR and CCPA compliance. Customisable text, colours, and privacy policy link. Fires a JS event on accept.

正在使用
10 以下
评分
暂无
累计下载
293
最近更新
2026年8月25日
需要 WordPress 5.9+已测试到 7.1.5PHP 7.4+

贡献者

截图

The settings page showing banner text, privacy policy link, and colour customisation.
The settings page showing banner text, privacy policy link, and colour customisation.
The remaining settings page showing banner text, privacy policy link, and colour customisation.
The remaining settings page showing banner text, privacy policy link, and colour customisation.
The consent banner in bottom-bar position with the default styling.
The consent banner in bottom-bar position with the default styling.
The consent banner in bottom-bar position with the default styling and a privacy policy link.
The consent banner in bottom-bar position with the default styling and a privacy policy link.

Consent Warden adds a clean, accessible cookie consent banner to your WordPress site. Visitors see a simple Accept button with an optional link to your privacy policy. Once accepted, the banner disappears and consent is remembered for up to a year.

Free edition features:

  • Accept-only banner — no unnecessary complexity
  • Three layout positions: bottom bar, bottom-left card, bottom-right card
  • Customisable heading, message text, and button label
  • Optional privacy policy link (URL and link text)
  • Six colour options: background, text, link, accept button, button text, and hover
  • Configurable consent expiry (1–3650 days, default 365)
  • Fires a cwarden:consent JavaScript event on accept — hook your own scripts to it
  • Accessible: role="region" and aria-label on the banner element
  • Zero external dependencies on the frontend
  • Consent stored in a cwarden_consent cookie with SameSite=Lax
  • No data sent to the server — consent stays on the visitor’s device

Upgrade to Standard or Pro for:

  • Granular consent categories (Analytics, Marketing, Preferences) with per-category toggles
  • Script blocking — prevent third-party scripts from loading until consent is given (soft dequeue and hard HTML rewrite)
  • Google Consent Mode v2 integration (gtag / GTM)
  • Full consent log — record and review visitor consent decisions
  • Geo-targeting — show the banner only to visitors in targeted regions (EU, UK, US, Brazil, and custom country lists)
  • Automatic cookie scanner — passively discover and categorise cookies set on your site

Learn more about the Standard and Pro editions at https://linuxgnut.com/projects/consent-warden/

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums