Plugin nebyl testován na 3 nejnovějších verzích WordPressu. Nemusí už být tedy podporován a u novějších verzí WordPressu může mít problémy s kompatibilitou a může být nestabilní.

EU Cookie Law for GDPR/CCPA


EU Cookie Law is a light, elegant and powerful solution to comply with European cookie law, GDPR and CCPA, with popup and options to lock scripts before acceptance.

Various customizations included to perfectly fit your website and keep cookies under control (before and after the consent).

Simply install the plugin and follow the instructions on the Settings page.



  • 🇪🇺 GDPR compliant
  • Customizable banner (color, position, strings)
  • 🤏 Consent by Clicking, Scrolling and Navigation
  • 🗃 Set your page, popup or custom URL for Cookie Policy
  • 📅 Set cookie expiry
  • ✂ Shortcode to revoke cookie consent
  • 📝 Shortcode to show a list of cookies
  • 📱 Responsive design
  • 🌍 Certified for WPML and compatible with various multilanguage plugins
  • Komaptibilní s Disqus a Jetpack InfiniteScroll

Rozšířené vlastnosti

  • Automatic block of iframes, embeds, scripts and objects before cookie consent, with overlay alert
  • Complete set of shortcodes, PHP filters and functions

You can prevent cookies using [cookie] and [/cookie] shortcodes in posts, pages and widgets, or play with php:

if ( function_exists(‘cookie_accepted’) && cookie_accepted() ) {
    // Your code

Shortcodes parameters, PHP filters and functions are available in our faqs.


Překlady můžete přidat zde :


  • Plugin promoted from 2015 by, open-source solutions developed for Italian government websites
  • Italská komunita Porte Aperte sul Web
  • This plugin was originally developed by Peadig in 2012.

Snímky obrazovky


This section describes how to install the plugin and get it working.

  1. Upload eu-cookie-law directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‚Plugins‘ menu in WordPress
  3. Go to the EU Cookie settings page
  4. Go through the steps and hit update!

Nejčastější dotazy

Krátké kódy dostupné

You can block code in posts, pages and widget by wrapping it with these shortcode:
[cookie] … [/cookie]
[cookie height=“100px“ width=“100%“ text=“Hi WordPress“] //My code [/cookie]

To display the button to revoke consent (if cookies accepted) or accept cookies:

You can also revoke consent by adding ?nocookie=1 parameter to your url.
Ex. or

To display a list of active cookies on user client:

PHP Funckce dostupné

You can check the consent with:
if ( function_exists(‚cookie_accepted‘) && cookie_accepted() ) {
// Your code

If you want to display the cookie-block message:
generate_cookie_notice($height, $width);
generate_cookie_notice_text($height, $width, $text);

if ( function_exists('cookie_accepted') && cookie_accepted() ) {
    // Your code
} else {
    generate_cookie_notice($height, $width);

Please note that cookie_accepted returns true if you disable it in the settings panel, if you excluded the current page or if you are a search engine 🙂

If you think that we should enhance something let us know in the forum.

Javascript filtry

Sometimes it could be useful to trigger custom actions on cookie consent, so we added useful filters.

If you want to play, just download our sample plugin and start coding!

Auto blok

The plugin offers an exclusive function that allows you to block iframes, embeds, objects, and scripts in posts, pages, and widgets. This can be activated in the plugin options panel because it is disabled by default.

To exclude a page from the filter set a custom post field eucookielaw_exclude to 1. Just enable „Custom Fields“ in „Screen Options“ and in the „Custom Fields“ box type the name, the value, and hit „Add Custom Field“.

If you want to exclude a script, you can type between <script> and </script> the string eucookielaw_exclude.
Ex. add class=“eucookielaw_exclude“ or a comment.


We are working to improve cache compatibility. As for now, conflicts may occur.

WP Super Cache (sperimental*): open the file wp-content/advanced-cache.php and add the following immediately after <?php opening:
if ( !isset( $_COOKIE[‚euCookie‘] ) ){ return; }

So that you have:
if ( !isset( $_COOKIE[‚euCookie‘] ) ){ return; }

function wpcache_broken_message() {


This plugin is officially certified for WPML. You can translate every string with WPML’s String Translation module.

WPML’s String Translation module is part of the Multilingual CMS package. To enable it, you first need to download and install it from your account > Downloads section.

Then, go to WPML->String Translation and use the display filter, at the top of the String Translation page, to determine which strings to display.

Click on the translations link to open the translation editor and adjust the strings as you want. Be sure to click on „translation is complete““ after you translate. Incomplete translations will not appear on the site.


9. 2. 2021
Because you have to do it, I was happy to find this little tool. So the law was quickly satisfied and the problem solved.
Přečtěte si všech 181 recenzí


EU Cookie Law for GDPR/CCPA je otevřený software. Následující lidé přispěli k vývoji tohoto pluginu.


Plugin „EU Cookie Law for GDPR/CCPA“ byl přeložen do 15 jazyků. Děkujeme všem překladatelům za jejich pomoc.

Přeložte “EU Cookie Law for GDPR/CCPA” do svého jazyka.

Zajímá vás vývoj?

Prohledejte kód, podívejte se do SVN repozitáře, nebo se přihlaste k odběru protokolu vývoje pomocí RSS.

Přehled změn

3.1.6 20201208

  • WP 5.6 ready!
  • Drobné změny

3.1.5 20200916

  • Improved accessibility (thanks B. Németh)

3.1.4 20200629

  • Fixed backward compatibility with popup message

3.1.3 20200623

  • Drobné opravy chyb
  • ReadMe changes

3.1.2 20200501

  • Compatibility check
  • Minor improvements

3.1.1 20200211

  • Compatiblity check and readme improvements

3.1 19.10.2019

  • Removed ability to serve inline scripts in the banner – Security fix for CVE: „By exploiting the documented vulnerability, an authenticated attacker with high privileges (admin) can execute JavaScript code in a victim’s browser.“
  • Some personal thoughts about the CVE:
  • EU Cookie Law allows for free HTML editing of the banner via the admin area to give better customization. This can be done only by a user with manage_options (=admin rights).
  • Please note that this vulnerability had to be used by an admin.
  • This update was released to reassure our users: we work to keep this plugin secure and efficient!
  • Personal thoughts by Marco Milesi

3.0.6 21.05.2019

  • Tested up to WP 5.2

3.0.5 10.06.2018

  • Různé opravy chyb

3.0.2 09.06.2018

  • Improved caching compatibility by adding plugin version as „?123“ parameter on scripts.js enqueue
  • Added another layer to check if cookies are accepted, so that the banner should disappear – it didn’t in some configurations (provide feedback, thanks)
  • Vylepšení .detekce klinutí na banner od @pelzi
  • Přidána verze 2.13 ve štítkách, v případě konfliktů s v3.x můžete se vrátit zpět

3.0.1 26.05.2018

  • Opraveno kritická chyba pro některé prohlížeče (např Internet Explorer) která zabila „Accept“ tlačítko

3.0 24.05.2018 – First GDPR release

Hello! This is our first GDPR release and I hope you’ll like it. Some functions have changed, so report bugs in our support forum to discuss them.
Also, if you don’t use technical cookies only, we suggest turning the AutoBlock function ON.

  • Added option to exclude script block: useful if you only want to block iframe/embeds, but not scripts. Scripts (like Google Analytics) can be always be blocked with our placeholders
  • Added more javascript-oriented logic to increase cache compatibility
  • SCROLL CONSENT and NAVIGATION CONSENT automatically disabled if you use AutoBlock
  • Added developer filter in Javascript for consent. Take a look at our FAQ or directly head to download our sample plugin download to start coding!
  • Improved [cookie-control] shortcode style to revoke consent
  • Added 10px in style.css for blocked cookies banner
  • Optimalizace kódu pro zvýšení výkonnosti

2.13 24.04.2018

  • Fixed bug with WordPress default Youtube embeds. Thanks to @rfmcomposer + @bitmed
  • Added better php check to block cookies in our faq – improvement by @rfmcomposer

2.12 23.04.2018

  • GDPR: we are working to give You the best plugin to comply with GDPR. Expect news soon! Please note that we already have a shortcode you can use to let users revoke the consent (see faq) and the accept button could already be considered as an „active consent“ with 1) cookie block enabled 2) scroll and navigation consent disabled
  • Opraveno typo chyby

2.11 24.11.2017

  • Kontrola a potvrzení WP 4.9 kompatibility

2.10 05.01.2017

  • Added filter eu_cookie_law_frontend_banner to change banner design with WordPress actions
  • Added filter eu_cookie_law_frontend_popup to change popup box design with WordPress actions
  • Fixed problem with „nocookie“ url parameter in cookie-control shortcode causing bugs in accept/revoke (#reported by Carlo Di Somma, Web Napoli Agency)
  • Enhanced performance

2.9.4 18.12.2016

  • Drobně změny a WP 4.7 kontrola kompatibility

2.9.3 06.07.2016

  • Drobně změny a WP 4.6 kontrola kompatibility

2.9.2 03.04.2016

  • Merged ac1d558 6937c2a daca37c thanks to @stephenharris on git
  • Aktualizován wpml-config.xml

2.9.1 31.01.2016

  • Added custom filter to exclude Jetpack InfiniteScroll

2.9 30.01.2016

  • Improved autoblock system
  • Better exclusion of search engines from the block
  • Zlepšení cache kompatibility
  • Performance improvements

2.8.5 31.12.2015

  • Full switch to
  • That’s all for 2015. Thank you everyone for using EU Cookie Law and Happy New Year from Peadig and WPGov!

2.8.4 16.11.2015

  • Prevent bot from cookie exclude (beta) – includes mshot screenshot previews
  • Drobné změny (typo)

2.8.2 11.11.2015

  • Removed fr_FR and nl_NL (now automatically bundled by

2.8.1 27.10.2015

  • Added option to exclude manually a script. See our faqs
  • Readme změny

2.8 17.10.2015

  • Added Top Center and Bottom Center for banner position
  • Added **target=“_blank“ option for cookie policy link
  • Removed ITALIAN and DEUTSCH languages. They are now bundled by WordPress. After some minutes you update to this version, you will get a notice to update translations in your dashboard. Other languages will come soon.
  • Drobné změny

2.7.3 15.10.2015

  • Minor change for translation system

2.7.2 01.10.2015

  • Minor change for translation system

2.7.1 28.09.2015

  • jQuery fix – díky @dukessa a @froussette

2.7 25.09.2015

  • Added option to define custom URL for cookie page
  • Fixed bug in Firefox – Thanks @gandalfthegrey
  • Přidána Polština – Díky Mariusz Kołacz
  • Opraveny chybějící překlady v adminu – DíkyMariusz Kołacz
  • Minor changes and performance improvements

2.6.3 26.08.2015

2.6.2 21.08.2015

  • Fixed incompatibility with some plugins (eg. Ultimate Tag Cloud Widget)
  • Zlepšená výkonnost

2.6.1 19.08.2015

  • Fixed Cookie Control bugs in some servers
  • Fixed wrong domain when set cookie in some servers
  • Added German (de_DE) by Karsten Höfner
  • Přidána Španělština (es_ES) od Núria Nadal

2.6 14.08.2015

  • Better navigation consent
  • Fixed occasional bugs with „headers already sent“
  • Added cookie-list shortcode (usage in FAQS)
  • Added allowed „0“ value to cookie lenght (for SESSION)

2.5.9 05.08.2015

  • Improved cache compatibility
  • Added WPML instructions in FAQS
  • Added cookie-control shortcode strings for customization+translations
  • Drobné změny

2.5.8 02.08.2015

  • Removed refresh if autoBlock not enabled
  • Improved autoBlock

2.5.7 02.08.2015

  • eucookielaw_exclude field now applies to content only
  • Performance improvements
  • Drobné změny

2.5.6 20.07.2015

  • Improved translation system
  • Improved compatibility with WPML
  • Fixed some missing strings in admin panel
  • Přdány es_ES, fr_FR, de_DE sobory pro překlady (čisté)

2.5.5 19.07.2015

2.5.4 17.07.2015

  • Drobné změny
  • Added WP Super Cache tips in faqs (sperimental)
  • Added Revoke Consent Link in faqs
  • Vylepšené Často kladené dotazy
  • Nový pruh

2.5.3 15.07.2015

  • Improved navigation consent (now it doesn’t reload the page)
  • Improved performance (load twice faster than 2.5.2)
  • Added parameter to allow you to create links to revoke cookie consent (experimental)

2.5.2 05.07.2015

  • Improved autoblock

2.5.1 03.07.2015

  • Compatible with WPML
  • Better AutoBlock function (Disqus block included!)
  • Now scripts block doesn’t generate the message (limited for iframe, object and embed)
  • Drobné změny

2.5 24.06.2015

  • Removed acceptance on scroll while in cookie page
  • Added Continue Navigation acceptance (beta)
  • Přidána podpora pro Multi weby (beta)

2.4.2 11.06.2015

  • Fixed occasional wrong date when setting cookies

2.4.1 10.06.2015

  • Solved a conflict with „Register Plus Redux“
  • Drobné změny

2.4 09.06.2015

  • Added <objects> to auto block feature
  • Added ability to exclude pages from auto block feature (see our faqs) (beta)
  • Added option to consider scrolling as acceptation (disabled by default)
  • Vylepšeno style.css
  • Remove inline javascript in favor of WordPress enqueue

2.3.1 08.06.2015

  • Removed „hours“ in expiration (it caused bugs with internationalization).
  • Please re-save the field. It will be considered as „days“ while calculating the expiration date of cookies.

2.3 08.06.2015

  • Added automatic block of iframes, embeds, scripts (beta)
  • Added option to enable/disable tinymce button
  • Performance improvements
  • Drobné změny

2.2.2 08.06.2015

  • Fixed conflict with the_content filter

2.2.1 08.06.2015

  • Fixed expire date bug
  • Fixed shortcodes in widgets
  • Drobné vylepšení

2.2 05.06.2015

  • Added customization options (ex. background+font color)
  • Přidána vícejazyčná podpora
  • Přidána Italština
  • Better UI for options panel
  • Drobné opravy chyb

2.1.1 + 2.1.2 04.06.2015

  • Fixed shortcodes in [cookie]...[/cookie] not being correctly rendered
  • Best tinymce icon with windowmanager
  • Nové a rozšířené vývojářské funkce

2.1 03.06.2015

  • Added option to link directly to a page instead of popup
  • Added ability to change default cookie-lock message
  • Added [cookie-control] shortcode
  • Drobné změny + opravy chyb

2.0.3 + 2.0.4 + 2.0.5 – 03.06.2015

  • Fixed cookie storing caused by wrong iso date
  • Zlepšení css pro malé obrazovky
  • Fixed jquery enqueue

2.0 + 2.0.1 + 2.0.2 – 02.06.2015

  • Plugin reload


  • Fixed cookie storing bug in Firefox


  • Fixed cookie storing bug
  • Přidána podpora pro IE v CSS