Plugin info

Total downloads: 1,986
Active installs: 100
Total reviews: 2
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 6/13/2022 (1350 days ago)
Added to WordPress: 1/28/2022 (4 years old)
Minimum WordPress version: 5.3
Tested up to WordPress version: 6.0.11
Minimum PHP version: 7.4

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1350 days ago • 2 reviews

22/100

Is Easy cookie consent abandoned?

Possibly abandoned (last update 1350 days ago).

Compatibility

Requires WordPress: 5.3
Tested up to: 6.0.11
Requires PHP: 7.4

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

This plugin implements https://github.com/orestbida/cookieconsent/ 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

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') {
        ?>
        

        

        
        

iframes

Change