Title: Easy cookie consent
Author: kamilpesekubkcz
Published: <strong>28. 1. 2022</strong>
Last modified: 13. 6. 2022

---

Prohledat pluginy

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í.

![](https://ps.w.org/easy-cookie-consent/assets/icon-256x256.png?rev=2667846)

# Easy cookie consent

 Autor: [kamilpesekubkcz](https://profiles.wordpress.org/kamilpesekubkcz/)

[Stáhnout](https://downloads.wordpress.org/plugin/easy-cookie-consent.1.1.1.zip)

 * [Podrobnosti](https://cs.wordpress.org/plugins/easy-cookie-consent/#description)
 * [Hodnocení](https://cs.wordpress.org/plugins/easy-cookie-consent/#reviews)
 *  [Instalace](https://cs.wordpress.org/plugins/easy-cookie-consent/#installation)
 * [Vývojáři](https://cs.wordpress.org/plugins/easy-cookie-consent/#developers)

 [Podpora](https://wordpress.org/support/plugin/easy-cookie-consent/)

## Popis

This plugin implements [https://github.com/orestbida/cookieconsent/](https://cs.wordpress.org/plugins/easy-cookie-consent/orestbida/cookieconsent?output_format=md)
solution and stores consents in custom database table.

Google Tag Manager consent mode is supported by default. _ad\_storage_ & _anaylytics\
_storage_ are set to denied by default.

### Filters/hooks

Set for which WordPress role cookie settings will be available:

    ```
    add_filter('easy_cookie_consent/options_capability', static function ($optionsCapability) {
        return 'custom_capability';
    });
    ```

Adjust options passed to Javascript. See [https://github.com/orestbida/cookieconsent/#all-configuration-options](https://github.com/orestbida/cookieconsent/#all-configuration-options/)

    ```
    add_filter('easy_cookie_consent/javascript_options', static function ($cookieConsentOptions) {
        $cookieConsentOptions['cookie_domain'] = '.example.com';
        return $cookieConsentOptions;
    });
    ```

Disable autorun:

    ```
    add_filter('easy_cookie_consent/autorun', static function ($autorun) {
        return false;
    });


    // call easy_show_cookie_consent() when needed
    if (function_exists('easy_show_cookie_consent')) {
        easy_show_cookie_consent();
    }
    ```

### Actions

Add custom/service Javascripts to page and control them by cookie consent:

    ```
    add_action('easy_cookie_consent/add_app_scripts', static function () {
        if (wp_get_environment_type() === 'production') {
            ?>
            <script>
                ...
            </script>

            <script type="text/script-template" data-cookiecategory="analytics">
                ...
            </script>

            <script type="text/script-template" data-cookiecategory="marketing">
                ...
            </script>
            <?php
        }
    });
    ```

### iframes

Change `<iframe>` tag to `<div>` and prefix attributes with `data-`
 – data-iframe-
cookie-needed – cookie category needed for iframe – data-iframe-placeholder-url –
url to placeholder image which will be used instead for iframe content

Example:

    ```
    <div
       title="Google Map"
       data-iframe-cookie-needed="analytics"
       data-iframe-placeholder-url="https://www.example.com/map_placeholder.png"
       style="width:100%;min-height:400px"
       data-frameborder="0"
       data-src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d82507.32058738587!2d13.30188385000431!3d49.74178702400929!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x470af1e5133d11b7%3A0x31b9406e3fc10b83!2sPilsen!5e0!3m2!1sen!2scz!4v1641891569357!5m2!1sen!2scz"
       >
    </div>
    ```

## Instalace

 1. Go to settings -> Cookie consent
 2. Fill all texts and cookies table for defined languages (Polylang plugin is supported)
 3. Set Google Tag Manager ID under _Settings_ tab

## Recenze

![](https://secure.gravatar.com/avatar/d111269efbd1f928f6c3415139855cd3040fc05de8229b54192b9aa480899e92?
s=60&d=retro&r=g)

### 󠀁[Nice and easy](https://wordpress.org/support/topic/nice-and-easy-412/)󠁿

 [Petr Beneš](https://profiles.wordpress.org/benyrfg/) 22. 2. 2023

Orest Bida’s cookie consent is very good solution and this plugin brings it to the
Wordpress. Nice work to the author.

![](https://secure.gravatar.com/avatar/f3a83f57012b8df64fdcf92440e7d1669a179bf46a38bcc978f2d4a4fa1b20f3?
s=60&d=retro&r=g)

### 󠀁[Easy, simple, customizable](https://wordpress.org/support/topic/easy-simple-customizable/)󠁿

 [Apollo139](https://profiles.wordpress.org/aloziak/) 11. 1. 2023

Easy, simple, customizable

 [ Přečtěte si všechny 2 recenze ](https://wordpress.org/support/plugin/easy-cookie-consent/reviews/)

## Autoři

Easy cookie consent je otevřený software. Následující lidé přispěli k vývoji tohoto
pluginu.

Spolupracovníci

 *   [ kamilpesekubkcz ](https://profiles.wordpress.org/kamilpesekubkcz/)

Plugin „Easy cookie consent“ byl přeložen do 1 jazyku. Děkujeme všem [překladatelům](https://translate.wordpress.org/projects/wp-plugins/easy-cookie-consent/contributors)
za jejich pomoc.

[Přeložte “Easy cookie consent” do svého jazyka.](https://translate.wordpress.org/projects/wp-plugins/easy-cookie-consent)

### Zajímá vás vývoj?

[Prohledejte kód](https://plugins.trac.wordpress.org/browser/easy-cookie-consent/),
podívejte se do [SVN repozitáře](https://plugins.svn.wordpress.org/easy-cookie-consent/),
nebo se přihlaste k[ odběru protokolu vývoje](https://plugins.trac.wordpress.org/log/easy-cookie-consent/)
pomocí [RSS](https://plugins.trac.wordpress.org/log/easy-cookie-consent/?limit=100&mode=stop_on_copy&format=rss).

## Přehled změn

1.1.1 Allow iframe fix
 1.1.0 WPML support, import/export options, default data 
1.0.0 GTM consent mode supported

## Meta

 *  Verze **1.1.1**
 *  Poslední aktualizace **před 4 roky**
 *  Aktivních instalací **100+**
 *  Verze WordPressu ** 5.3 nebo novější **
 *  Testováno až do WordPressu **6.0.11**
 *  Verze PHP ** 7.4 nebo novější **
 *  Jazyky
 * [Czech](https://cs.wordpress.org/plugins/easy-cookie-consent/) a [English (US)](https://wordpress.org/plugins/easy-cookie-consent/).
 *  [Přeložte do vašeho jazyka](https://translate.wordpress.org/projects/wp-plugins/easy-cookie-consent)
 *  [Podrobnosti](https://cs.wordpress.org/plugins/easy-cookie-consent/advanced/)

## Hodnocení

 5 z 5 hvězdiček.

 *  [  2 5hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/easy-cookie-consent/reviews/?filter=5)
 *  [  0 4hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/easy-cookie-consent/reviews/?filter=4)
 *  [  0 3hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/easy-cookie-consent/reviews/?filter=3)
 *  [  0 2hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/easy-cookie-consent/reviews/?filter=2)
 *  [  0 1hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/easy-cookie-consent/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/easy-cookie-consent/reviews/#new-post)

[Zobrazit všechny recenze](https://wordpress.org/support/plugin/easy-cookie-consent/reviews/)

## Spolupracovníci

 *   [ kamilpesekubkcz ](https://profiles.wordpress.org/kamilpesekubkcz/)

## Podpora

Potřebujete pomoc?

 [Fórum podpory](https://wordpress.org/support/plugin/easy-cookie-consent/)