跳到内容

Custom Cookie Message

v2.4.10

johansylvan · 2016年10月31日 上架

License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Custom Cookie Message compatible with multilanguages and multisites.

正在使用
20+
评分
暂无
累计下载
1.1 万
最近更新
2020年9月1日
需要 WordPress 4.9+已测试到 5.5.25PHP 5.6+

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums