| 开发者 | ajayrajbanshi |
|---|---|
| 更新时间 | 2026年3月31日 01:26 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[nivaj_cookie_preferences] to place a cookie preferences button anywhere[nivaj_cookie_preferences] to add a "Cookie Preferences" button anywhere on your site.
Attributes:
text – Button label (default: "Cookie Preferences")class – Additional CSS class[nivaj_cookie_preferences text="Manage Cookies" class="my-btn"]
Privacy
This plugin stores consent preferences in a browser cookie on the visitor's device. When consent logging is active, IP addresses and user agents are stored as one-way SHA-256 hashes combined with the WordPress salt, making them non-reversible. No personal data is shared with external services by this plugin itself. See the "External services" section below for details on optional Google integrations.
nivaj-cookie-consent folder to the /wp-content/plugins/ directory.Yes. Define URL patterns under Cookie Consent > Scripts, and the plugin will block matching <script> and <iframe> tags until the visitor consents to the relevant category.
Yes. You can customize the position (top bar, bottom bar, or center modal), layout, colors, font size, border radius, button styles, and add custom CSS.
Yes. Enable GTM under Cookie Consent > Settings > Advanced and enter your container ID. The plugin also supports Google Consent Mode v2 for sending consent signals to Google services.
The plugin helps you achieve GDPR compliance by blocking non-essential cookies until consent is given, providing granular category-based choices, and logging consent for accountability. Full compliance depends on your overall site configuration and legal requirements.
Yes. Each site in a multisite network has its own settings and consent log. The uninstall process cleans up data across all sites.
Consent preferences are stored in a browser cookie. Consent log records are stored in a custom database table with hashed (non-reversible) IP addresses and user agents.
Yes. Use the [nivaj_cookie_preferences] shortcode or call window.nivajCC.reopenBanner() from JavaScript.
[nivaj_cookie_preferences] shortcode.