| 开发者 | clearcrumb |
|---|---|
| 更新时间 | 2026年10月21日 07:44 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[clearcrumb_cookie_policy], in English, German, French, Dutch, Spanish and Italian.[clearcrumb_preferences] shortcode, so visitors can change their mind at any time.wp clearcrumb scan and wp clearcrumb log export.window.ClearCrumb.get() returns the visitor's choice (or null), ClearCrumb.has( 'statistics' ) checks one category, and ClearCrumb.open() opens the preferences. Every saved choice fires a clearcrumb:consent event on document.
Source code & build
Everything ships readable. The banner scripts and styles sit next to their minified copies (assets/js/guard.js, assets/js/banner.js, assets/css/banner.css). The admin app's source is in src/admin/, with the build tools in src/tools/. To rebuild assets/admin/ and the .min files, run this inside the plugin's src folder (Node.js 18 or newer):
npm install && npm run build
Pick a layout, a design style and a button colour under ClearCrumb → Banner. For anything more, add your own CSS in WordPress under Appearance → Customize → Additional CSS (or Styles → Additional CSS in the Site Editor), with selectors that start with #clearcrumb.
In a first-party cookie named clearcrumb_consent on your own domain. A copy of the choice goes to your own database as proof (the consent log), with the consent ID and IP address shortened and hashed. Nothing is sent to anyone else.
Add the shortcode [clearcrumb_preferences], or give any link the class clearcrumb-open-preferences.
wp clearcrumb log export exports every record the log keeps by default.src/.