| 开发者 | templatesrocketwp |
|---|---|
| 更新时间 | 2026年6月3日 12:29 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[cookie-rocket-preferences] — renders a button that re-opens the cookie preferences modal.[cookie-rocket-withdraw] — renders a link that withdraws consent and clears stored preferences.[cookie_rocket_policy] — renders the automatic cookie declaration table (provider, purpose and duration per cookie, grouped by category).cookie-rocket folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.[cookie-rocket-preferences] shortcode in your privacy policy page to let visitors update their choices at any time.No. Cookie Rocket stores consent entirely in the visitor's browser (cookie + localStorage) and logs events to your own WordPress database. No third-party requests are made.
Yes. The banner state is read from a first-party cookie, so caching (page cache, object cache, CDN) does not interfere with consent storage or display.
Yes. The free version automatically blocks the most common third-party tracking scripts — Google Analytics, Meta (Facebook) Pixel, Hotjar, Microsoft Clarity, LinkedIn, TikTok, Google Ads and more — until the visitor accepts the matching cookie category, and it ships Google Consent Mode v2 (default denied) out of the box. Enqueued scripts are blocked by default; an optional setting also blocks scripts pasted directly into your theme or header. Cookie Rocket Pro adds a scanner that discovers and auto-categorizes any script or cookie on your site — including ones not in the built-in list — plus unlimited custom rules.
Yes. The text domain is cookie-rocket and a complete .pot file is included under /languages/. All banner and modal strings are wrapped for translation. The plugin ships in English by default with Spanish (es_ES) and Brazilian Portuguese (pt_BR) translations bundled, applied automatically on matching locales. WordPress also loads community translations for plugins hosted on WordPress.org, and you can translate the banner yourself with Loco Translate or Poedit, or via WPML/Polylang.
Yes. Add the [cookie_rocket_policy] shortcode to any page, or go to Cookie Rocket → Cookie Policy and create the page in one click. It publishes a cookie declaration table — each cookie with its provider, purpose and duration, grouped by category — built from your latest scan plus a built-in catalog of the most common third-party cookies. Strictly-necessary cookies are always listed, and the table updates automatically as you re-scan.
Yes. Each site stores its own settings. Activate per-site or network-activate from the network admin.
[cookie_rocket_policy] shortcode — or create the page in one click from Cookie Rocket → Cookie Policy — to publish a table of every cookie your site uses, grouped by category, with its provider, purpose and duration.cookroco_consent).[cookie-rocket-preferences] shortcode placed wherever you want (footer, menu, etc.). Existing installations that had it enabled keep it enabled.