Linux 软件免费装
Banner图

Bato Cookie Consent

开发者 batowebagency
更新时间 2026年6月2日 22:08
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv3 or later
版权网址: 版权信息

标签

cookies privacy gdpr consent eprivacy

下载

1.0.0

详情介绍:

Bato Cookie Consent adds a configurable cookie consent interface to WordPress. It provides an admin settings screen for banner content, policy links, consent categories, cookie lifetime, floating preferences button, and Google Consent Mode integration. The plugin is built for site owners and developers who need a local, customizable consent banner without loading third-party assets by default. Features Supported Languages The frontend consent interface includes built-in content for 34 languages: Arabic, Bulgarian, Catalan, Croatian, Czech, Danish, Dutch, English, English (UK), Estonian, Finnish, French, German, Greek, Hebrew, Hungarian, Italian, Japanese, Latvian, Lithuanian, Macedonian, Norwegian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swedish, Turkish, Ukrainian, and Welsh. The plugin can follow the visitor's browser language, auto-detect the WordPress site language where possible, or use a fixed language selected in the settings. Privacy Bato Cookie Consent stores the visitor's consent choices in the visitor's browser using a cookie or local storage, depending on the plugin settings. The plugin does not collect personal data, send analytics, or contact external servers by default. If you configure third-party scripts or embeds, those services may process visitor data according to their own terms and privacy policies. The plugin can help delay those scripts or embeds until the relevant consent category is allowed, but it does not guarantee legal compliance. Site owners are responsible for configuring the banner, policies, and scripts for their jurisdiction. Developer Usage Developers can extend the frontend configuration with the bato_cookie_consent_config filter: ` add_filter('bato_cookie_consent_config', function ($config) { $config['scripts'][] = array( 'id' => 'analytics', 'category' => 'analytics', 'src' => 'https://example.com/analytics.js', 'async' => true, ); return $config; }); ` Source files and build tooling are included with the plugin. To rebuild production assets, run: npm install npm run build

安装:

  1. Upload the plugin files to the /wp-content/plugins/bato-cookie-consent directory, or install the plugin through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings > Bato Cookie Consent.
  4. Configure banner content, policy links, consent categories, and advanced options.

屏幕截图:

  • Centered cookie consent banner displayed in German language.
  • Cookie Preferences modal with customizable consent settings.
  • Editing the main plugin settings and selecting the preferred language.
  • Editing multilingual content for all supported languages, including RTL languages.
  • Prepared examples demonstrating advanced usage scenarios.

升级注意事项:

1.0.0 Initial release.

常见问题:

Does this plugin make my site legally compliant?

No. The plugin provides consent banner tooling, category controls, and script/embed gating features, but site owners are responsible for legal review, policy text, and jurisdiction-specific configuration.

Does the plugin contact external servers?

No external requests are made by default. External scripts or embeds are only involved if you configure them through plugin settings, site content, or developer filters.

Where are visitor choices stored?

Visitor consent choices are stored in the visitor's browser using the configured cookie or local storage option.

Can developers add scripts or embeds by category?

Yes. Use the bato_cookie_consent_config filter to register scripts or embeds and assign them to consent categories.

Does Google Consent Mode load Google scripts?

No. The option updates Google Consent Mode values only when a compatible gtag setup already exists on the site.

更新日志:

1.0.0