Title: Ilmenite Cookie Consent
Author: Erik Bernskiold
Published: <strong>23 juli 2015</strong>
Last modified: 4 februari 2024

---

Plugins zoeken

![](https://ps.w.org/ilmenite-cookie-consent/assets/banner-772x250.png?rev=2488465)

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

![](https://ps.w.org/ilmenite-cookie-consent/assets/icon-128x128.png?rev=2488465)

# Ilmenite Cookie Consent

 Door [Erik Bernskiold](https://profiles.wordpress.org/erik-bernskiold/)

[Download](https://downloads.wordpress.org/plugin/ilmenite-cookie-consent.zip)

 * [Details](https://nl.wordpress.org/plugins/ilmenite-cookie-consent/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/ilmenite-cookie-consent/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/ilmenite-cookie-consent/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/ilmenite-cookie-consent/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/ilmenite-cookie-consent/)

## Beschrijving

There are many WordPress plugins out there which does a lot of fancy things with
the cookie consent. We didn’t find one we really liked that was really lightweight
and developer friendly and so we created our own.

It isn’t meant for the masses who want tons of configurable options in the admin(
although it will work and look fine out of the box). Many use this plugin with the
default styling because it is so light-weight and good-looking.

For the developer who wants the functionality and being able to conveniently override
the styles in the theme without bloat—here’s a plugin for you. You have filters 
and actions available to you at every step of the process.

See the installation section for more information on how to install. The FAQ section
has important information on how to customize the plugin.

#### Vertalingen

Inbegrepen in het pakket zijn volledige vertalingen voor de volgende talen:

 * Litouws (Bedankt @batiufa)
 * Zweeds
 * Occitan (Thanks Mejans)
 * Noors
 * Deens
 * Hongaars
 * Spaans
 * Duits
 * Italiaans
 * Sloveens

A complete _.pot_ file is available in the _translations/_ directory. If you use
and translate this little plugin, please send us the translation so it can be included!

**Even better** is if you use Translate.WordPress.org for your translations. That
way, they will be automatically distributed with the WordPress updater.
 However,
in some locales, the work with the Translate site is not up to speed. We will continue
to support included translations for a while.

## Schermafbeeldingen

[⌊The "top" style design of the cookie consent box out of the box.⌉⌊The "top" style
design of the cookie consent box out of the box.⌉[

The “top” style design of the cookie consent box out of the box.

[⌊The "overlay" style design of the cookie consent box, enabled in the customizer.⌉⌊
The "overlay" style design of the cookie consent box, enabled in the customizer.⌉[

The “overlay” style design of the cookie consent box, enabled in the customizer.

[⌊Customizer controls are available for all texts and URL.⌉⌊Customizer controls 
are available for all texts and URL.⌉[

Customizer controls are available for all texts and URL.

## Installatie

We recommend using the built-in plugin installer in WordPress. If you wish to install
the plugin manually:

 1. Upload `ilmenite-cookie-consent` naar de `/wp-content/plugins/` folder.
 2. De plugin activeren via het ‘Plugin’ menu in WordPress.
 3. Insert a link to your cookie policy in the ‘Settings > Reading’ page.

## FAQ

### Hoe stel ik de link naar het cookiebeleid in?

You can set the URL to the cookie policy page in the customizer under the “Cookie
Banner” section, or use the filter `ilcc_policy_url` to return your own link.

### Hoe pas ik de stijl aan of schakel ik deze volledig uit?

Out of the box, the plugin includes a lightweight stylesheet with two placement 
options (top & overlay). If you don’t want to use our default coloring, you can 
easily prevent us from including the styles.

Just define the following filter somewhere in your code, such as the theme functions.
php file:

    ```
    add_filter( 'ilcc_load_stylesheet', '__return_false' );
    ```

Additionally, for quick theming to your theme’s custom colors, we support a series
of CSS variables set on `body.has-ilcc-banner` like so:

    ```
    body.has-ilcc-banner {
        --ilcc-background-color: #282b2d;
        --ilcc-text-color: #ccc;
        --ilcc-link-color: #ccc;
        --ilcc-link-color-hover: #fff;
        --ilcc-banner-spacing: 1.4rem 0;
        --ilcc-close-button: #474d50;
        --ilcc-close-button-hover: #666;
        --ilcc-close-button-text: white;
        --ilcc-close-button-hover-text: white;
        --ilcc-button-radius: 4px;
    }
    ```

If you would like to add your own style in addition to the two offered, you can 
override the style setting with the `ilcc_style` filter. This would let you style
outside the two core positions.

### Kan ik de teksten en/of knoplabel wijzigen?

You can change the the two lines of text and the button label from the customizer
under the “Cookie Banner” section. Alternatively you can use a set of filters to
return values before rendering.

Modiyfing the title: `ilcc_consent_title`
 Modiyfing the text info: `ilcc_consent_text`
Modiyfing the accept button label: `ilcc_accept_text`

Just set their value somewhere in your code, such as in the functions.php file of
your theme:

    ```
    function ilcc_modify_consent_text( $text ) {
        $text = __( 'This is my custom text about how we use cookies.', 'YOURTEXTDOMAIN' );
        return $text;
    }

    add_filter( 'ilcc_consent_text', 'ilcc_modify_consent_text' );

    function ilcc_modify_accept_text( $text ) {
        $text = __( 'I Accept', 'YOURTEXTDOMAIN' );
        return $text;
    }

    add_filter( 'ilcc_accept_text', 'ilcc_modify_accept_text' );
    ```

### Welke acties zijn beschikbaar?

ilcc_loaded – Runs on constructor.

    ```
    before_ilcc_init - Runs before we have run any init actions.

    ilcc_init - Runs when all init hooks have run.
    ```

### Welke filters zijn beschikbaar?

ilcc_has_user_consented – Specifiy if the user has accepted or not. True or false
value. Has arguments $cookie_name and $cookie_value.

    ```
    ilcc_cookie_active_value - Set which value is "active" for the cookie, ie. consented. Defaults to 1.

    ilcc_cookie_name - Set the name of the cookie. Defaults to 'EUConsentCookie'.

    ilcc_accept_text - Set the accept button text.

    ilcc_consent_text - Set the consent text. Has $policy_url as argument.

    ilcc_policy_url - Allows you to modify the Policy URL. Has the url from the options as argument.

    ilcc_style - Allows you to set your own style name.

    ilcc_edit_text_capability - Allows you to modify which capability is required for editing the cookie banner text (below the title) in the customizer. Defaults to `edit_theme_options`.

    ilcc_edit_title_capability - Allows you to modify which capability is required for editing the cookie banner title in the customizer. Defaults to `edit_theme_options`.

    ilcc_edit_button_capability - Allows you to modify which capability is required for editing the cookie banner button label in the customizer. Defaults to `edit_theme_options`.

    ilcc_edit_policy_url_capability - Allows you to modify which capability is required for editing the policy URL in the customizer. Defaults to `edit_theme_options`.

    ilcc_edit_style_capability - Allows you to modify which capability is required for editing the cookie banner style in the customizer. Defaults to `edit_theme_options`.

    ilcc_load_stylesheets - (bool) Set if you want the stylesheets to be loaded or not. Defaults to true.

    ilcc_enable_customizer - Return false to disable all the customizer settings, if you'd like to prevent any user from changing any of the settings.

    ilcc_preferences_cookie_name - The name of the cookie that stores if a visitor has set their cookie preferences.

    ilcc_categories_cookie_name - The name of the cookie that stores the categories the visitor has opted in to.

    ilcc_tracker_settings_enabled - Return false to disable the tracker customization settings screen.

    ilcc_is_active_on_page - Return false to hide the banner from loading. Can be used to prevent the banner from loading on certain pages or templates.
    ```

## Beoordelingen

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

### 󠀁[Super leichtgewichtig ohne Schnickschnack](https://wordpress.org/support/topic/super-leichtgewichtig-ohne-schnickschnack/)󠁿

 [droidspirit](https://profiles.wordpress.org/droidspirit/) 4 oktober 2024

Genau die Lösung, die ich gesucht habe. Vielen Dank dafür.

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

### 󠀁[Perfect simple and in NL](https://wordpress.org/support/topic/perfect-simple-and-in-nl/)󠁿

 [dkoek](https://profiles.wordpress.org/dkoek/) 2 maart 2024

Very simple and free plugin. Works great. Translated into dutch language.

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

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-38376/)󠁿

 [Mike Ice](https://profiles.wordpress.org/x0tik0/) 27 januari 2024 3 reacties

Thanks for this great plugin! How does it show other languages for multilingual 
sites? I made a Greek translation and uploaded the .mo and .po files. Is the plugin
able to detect browser languages or follow polylang languages switcher?

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

### 󠀁[Amazing plugin](https://wordpress.org/support/topic/amazing-plugin-2302/)󠁿

 [Miguel](https://profiles.wordpress.org/teledirigido/) 15 december 2022 1 reactie

Amazing plugin, does not bloat the website, is developer friendly and you can use
native css variables to customise your layout!Thank you <3

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

### 󠀁[easy and light](https://wordpress.org/support/topic/easy-and-light-10/)󠁿

 [casesolver](https://profiles.wordpress.org/casesolver/) 10 juni 2021 1 reactie

Thanks, I also tried several plugins and found yours, perfect! One cliq and ready,
speedtest shows no speed loss. Design: compliments.

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

### 󠀁[small and effective](https://wordpress.org/support/topic/small-and-effective-6/)󠁿

 [wphoniko](https://profiles.wordpress.org/wphoniko/) 19 mei 2018 1 reactie

… that's what i like :-), THANK YOU !

 [ Lees alle 9 beoordelingen ](https://wordpress.org/support/plugin/ilmenite-cookie-consent/reviews/)

## Bijdragers & ontwikkelaars

“Ilmenite Cookie Consent” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

 *   [ Erik Bernskiold ](https://profiles.wordpress.org/erik-bernskiold/)
 *   [ Ann Lickander ](https://profiles.wordpress.org/annlickander/)
 *   [ Bernskiold Media ](https://profiles.wordpress.org/bernskioldmedia/)

“Ilmenite Cookie Consent” is vertaald in 4 localen. Dank voor [de vertalers](https://translate.wordpress.org/projects/wp-plugins/ilmenite-cookie-consent/contributors)
voor hun bijdragen.

[Vertaal “Ilmenite Cookie Consent” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/ilmenite-cookie-consent)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/ilmenite-cookie-consent/),
haal de [SVN repository](https://plugins.svn.wordpress.org/ilmenite-cookie-consent/)
op, of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/ilmenite-cookie-consent/)
via [RSS](https://plugins.trac.wordpress.org/log/ilmenite-cookie-consent/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### Version 3.2.0

 * Add matomo integration
 * Allow customizing consent sections
 * Remove syncing debug mode with WP_DEBUG
 * Remove jQuery dependencies
 * Adds Occitan language (Thanks Mejans)

#### Version 3.1.0

 * Added a filter to prevent the banner from loading on specific pages or templates.
 * Declare support for PHP 8 when loading via composer.

#### Version 3.0.3

 * Fixed a bug where domains were included in the disallow list even when they were
   supposed to be allowed. (#16)

#### Version 3.0.2

 * Updated Lithuanian translation (thanks @batiufa)
 * Fixed an array offset warning (#14)

#### Version 3.0.1

Fixed an issue where we passed script tags to an wp_add_inline_script function callback,
causing a doing_it_wrong notice.

#### Version 3.0.0

Major update with potentially breaking changes.

We are now finally respecting not to set any tracking cookies unless the user has
actually accepted all cookies. We keep a running list of trackers that we disable
automatically. From analytics to marketing. You can modify the list of trackers 
via filters in the code or the settings screen.

As a developer, you can disable the settings screens via filters.

To support this, the plugin has been extended quite a bit. There are numerous new
strings, filters and options.

We have also added a new style, “take over”, if you’d prefer to force the user to
make a choice before allowing them into your website. The “overlay” style has now
been made the default one for new installs.

 * Added the `ilcc_preferences_cookie_name` filter to replace the now removed `ilcc_cookie_name`
   filter.
 * Added the `ilcc_categories_cookie_name` filter.
 * Added the `ilcc_remember_duration` filter.
 * Added the `ilcc_tracker_settings_enabled` filter.
 * Removed the `ilcc_has_user_consented` filter.
 * Removed the `ilcc_cookie_active_value` filter.
 * Replaced `ilcc_edit_text_capability`, `ilcc_edit_title_capability`, `ilcc_edit_button_capability`
   and `ilcc_edit_policy_url_capability` with a simpler `ilcc_edit_texts_capability`
   that takes the setting as an argument.

#### Version 2.0.5

When no policy URL is set in the customer, the default integrity policy URL from
the WordPress settings will be loaded.

For those translating via WPML and Polylang, we have added a configuration file 
that makes the strings you add in the customizer translatable.

#### Version 2.0.4

Fixed a bug where the consent duration wasn’t set properly, resulting in us asking
the user to consent way more often. The plugin will now (correctly) remember the
consent for 30 days, unless the user clears their cookies.

#### Version 2.0.3

Fixed compatibility issues with jQuery 3. Thanks Viktor.

#### Version 2.0.2

Fixed a small issue where our build script wasn’t processing fallbacks for the new
CSS variables correctly.

This could lead to the default style not loading properly in older browsers (such
as IE 11). This update fixes
 this behavior.

As a result, the variables are now defined on :root {}.

#### Version 2.0.1

Svn is svn. Contains nothing new apart from fixing the release archive.
 If you 
managed to update to 2.0.0 in the few minute window before this was addressed, 2.0.1
takes care of things for you. If not, enjoy the 2.0.0 update.

#### Version 2.0.0

In this major release we’ve made many code improvements as well as improvements 
to class names
 and the JavaScript that powers most of the features. You will also
have better and more access to filters and actions for customization. Also, new 
customizer settings and a new core style gives you quicker access to control the
appearance of the banner.

 * Improvement: Switched to setting the policy URL in the customizer instead of 
   under Settings > Reading.
 * Improvement: Added customizer settings for all texts as well.
 * Improvement: Added a second core style “Overlay”, offering the option of showing
   the banner overlaid at the bottom instead of at the top.
 * Improvement: Better class names for the consent box.
 * Improvement: Re-structured the JavaScript code.
 * Improvement: Ensure we get languages from all possible storage folders in WordPress.
 * Improvement: Added filter to disable stylesheet loading.
 * Improvement: Never process any of the the JS or CSS logic if the user has already
   consented.
 * Improvement: Added filter when we check if user has consented.
 * Improvement: Added filter for cookie name.
 * Improvement: Added filter for cookie acceptance value.
 * Improvement: Modified consent text filter to include the policy URL as a variable.
 * Improvement: Added filter for when getting the policy URL.
 * Improvement: Switched from an `<a>` tag for the acceptance button, to a more 
   proper `button`.
 * Improvement: Added filters for controlling who may edit the settings in the customizer.
 * Bug: Fixed a bug where the consent block could add to the DOM multiple times.

#### Version 1.1.4

Added Danish translation. (Thanks Magnus!)

#### Version 1.1.3

Added an Hungarian translation. (Thanks Miklos)

#### Version 1.1.2

Updated a string in the Spanish translation (thanks ibertrix)

#### Version 1.1.1

We managed to change a string we shouldn’t have changed in Version 1.1.0. Sorry 
about that!

#### Version 1.1.0

It’s time we switch this plugin over to above 1.0 releases.
 – Changed the textdomain
to conform with the plugin name = text domain. This means we will have full support
for the WordPress.org Plugin translations. – Added Italian translation (Thanks Matteo)

#### Version 0.2.9

 * Improved German translation (Thanks Frank!)
 * Added Lithuanian translation
 * Minor Code Tweaks & Improvements (just behind the scenes—Thanks Johan)

#### Version 0.2.8

 * Toegevoegd: Spaanse vertaling (Bedankt Vigdis!)
 * Een bug opgelost waarbij de hoogte van de cookie banner werd weergegeven in de
   JS console.

#### Version 0.2.7

 * Slowaakse taalondersteuning toegevoegd (Bedankt Peter!)

#### Version 0.2.6

 * Noorse (Bokmål) vertaling toegevoegd (Bedankt Kristofer!)
 * Duitse vertaling geüpdatet met ontbrekende string.
 * Lost dev mode constante op
 * Verwijder de GitHub Updater. Plugin wordt toegevoegd aan de WordPress repository.

= Version 0.2.5**
 – Performance Increase: Don’t load scripts and styles if the 
cookie has already been set.

#### Version 0.2.4

 * Lost een fout op in de nieuwe CSS

#### Version 0.2.3

 * Opgelost een bug waarbij de instellingen niet werden opgeslagen vanwege een onjuist
   gespecificeerd instellingen gebied. (Dank aan jnylin https://github.com/jnylin)
 * Standaard stijlen toegevoegd voor mobiel vriendelijkheid

#### Version 0.2.2

 * Opgelost een bug waarbij de lokalisatie functie niet correct werd geladen.
 * Opgelost een bug waarbij sommige tekst domeinen niet correct waren gespecificeerd.

#### Version 0.2.1

 * Opgelost een bug waarbij de taalbestanden niet correct werden geladen.

#### Version 0.2.0

 * Toegevoegd GitHub updater
 * Instellingen veld toegevoegd voor beleids URL.
 * Minify script and style
 * Added German translation

#### Version 0.1.0

 * First plugin version.

## Meta

 *  Versie **3.3.0**
 *  Laatst geüpdatet **3 jaar geleden**
 *  Actieve installaties **2.000+**
 *  WordPress versie ** 5.0 of nieuwer **
 *  Getest t/m **6.4.13**
 *  PHP versie ** 7.2 of nieuwer **
 *  Talen
 * [Dutch](https://nl.wordpress.org/plugins/ilmenite-cookie-consent/), [English (US)](https://wordpress.org/plugins/ilmenite-cookie-consent/),
   [French (France)](https://fr.wordpress.org/plugins/ilmenite-cookie-consent/),
   [Greek](https://el.wordpress.org/plugins/ilmenite-cookie-consent/) en [Polish](https://pl.wordpress.org/plugins/ilmenite-cookie-consent/).
 *  [Vertaal in je eigen taal](https://translate.wordpress.org/projects/wp-plugins/ilmenite-cookie-consent)
 * Tags
 * [cookie banner](https://nl.wordpress.org/plugins/tags/cookie-banner/)[cookie compliance](https://nl.wordpress.org/plugins/tags/cookie-compliance/)
   [cookie notice](https://nl.wordpress.org/plugins/tags/cookie-notice/)[cookies](https://nl.wordpress.org/plugins/tags/cookies/)
   [eu cookie law](https://nl.wordpress.org/plugins/tags/eu-cookie-law/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/ilmenite-cookie-consent/advanced/)

## Waarderingen

 5 van 5 sterren.

 *  [  9 5 sterren beoordelingen     ](https://wordpress.org/support/plugin/ilmenite-cookie-consent/reviews/?filter=5)
 *  [  0 4 sterren beoordelingen     ](https://wordpress.org/support/plugin/ilmenite-cookie-consent/reviews/?filter=4)
 *  [  0 3 sterren beoordelingen     ](https://wordpress.org/support/plugin/ilmenite-cookie-consent/reviews/?filter=3)
 *  [  0 2 sterren beoordelingen     ](https://wordpress.org/support/plugin/ilmenite-cookie-consent/reviews/?filter=2)
 *  [  0 1 sterren beoordelingen     ](https://wordpress.org/support/plugin/ilmenite-cookie-consent/reviews/?filter=1)

[Je beoordeling](https://wordpress.org/support/plugin/ilmenite-cookie-consent/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/ilmenite-cookie-consent/reviews/)

## Bijdragers

 *   [ Erik Bernskiold ](https://profiles.wordpress.org/erik-bernskiold/)
 *   [ Ann Lickander ](https://profiles.wordpress.org/annlickander/)
 *   [ Bernskiold Media ](https://profiles.wordpress.org/bernskioldmedia/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/ilmenite-cookie-consent/)