Custom Cookie Message

plugin banner

Cookie message compatible with multilanguages and multisites.

Author:Angry Creative AB (profile at wordpress.org)
WordPress version required:4.9
WordPress version tested:5.5.5
Plugin version:2.4.10
Added to WordPress repository:31-10-2016
Last updated:01-09-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/Angrycreative/custom-cooki...
Total downloads:9 374
Active installs:60+
plugin download
Click to start download

Installing and activating the plugin will automatically make it appear with the default content and styling.

Custom cookie message is compatible with multilanguages where all you have to do is translate the strings of the cookie message as you would with any other strings. In plugins such as WPML or Polylang the cookie message strings show up just as other strings and are ready to be translated.
Custom cookie message is also compatible with multisites. The location of the message is customizable as well as the content and styling. The settings can be found under settings -> cookies.

Features

We have a list of cookies by default so the customers can delete them if they want to, and you can expand this list using this filter:

add_filter( 'default_advertising_list_filters', 'add_som_cookies_name_to_default_list' );

/**
 * To expand advertising cookies list
 * @param $default_cookies
 *
 * @return array
 */
function add_som_cookies_name_to_default_list( $default_cookies ){
    $default_cookies[] = 'cookie_name';

    return $default_cookies;
}

Default cookies list:

_ga,_gid,_hjIncludedInSample,_hjid,1P_JAR,APISID,CONSENT,HSID,NID,SAPISID,SEARCH_SAMESITE,SID,SIDCC,SSID,UULE

ChangeLog