Plugin Directory

EU Cookie Law

EU Cookie Law informs users that your site uses cookies, with option to lock scripts before consent. Light + Customizable style.

Shortcodes available

You can block code in posts, pages and widget by wrapping it with these shortcode:

[cookie] ... [/cookie]


[cookie height="100px" width="100%" text="Hi <b>WordPress</b>"] //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. wordpress.org/?nocookie=1 or wordpress.org/something/?nocookie=1

To display a list of active cookies on user client:


PHP Functions available

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.

Auto block

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 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 , you can type between and 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 WPML.org 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 in the site.

Requires: 3.8 or higher
Compatible up to: 4.5
Last Updated: 1 week ago
Active Installs: 40,000+


4.6 out of 5 stars


8 of 14 support threads in the last two months have been marked resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 50,2,1
100,1,1 100,1,1 100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 50,2,1 100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,2,2
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,2,2 100,2,2 100,1,1
100,1,1 100,1,1