跳到内容

Light Weight Cookie Popup

v1.0

Tushar Kapdi · 2018年6月27日 上架

Light Weight Cookie Popup allows you to inform to users that your site uses cookies and to comply with the EU cookie law regulations.

正在使用
10+
评分
暂无
累计下载
2,176
最近更新
2026年5月22日
需要 WordPress 3.6+已测试到 7.0.9PHP 5.2.4+

贡献者

截图

Popup options
Popup options

Try it out on your free dummy site: Click here => https://tastewp.com/new?pre-installed-plugin-slug=light-weight-cookie-popup&redirect=options-general.php%3Fpage%3Dlwcp&ni=true

Light Weight Cookie Popup where you can inform to users that your site uses cookies and to comply with the EU cookie law regulations.

Options

  • Message (optional)
  • Cookie Expiry (optional) : Default – 1 day
  • Country (Display within selected countries) (optional) : Default – All Countries
  • Position: Top/Bottom (optional) : Default – Bottom
  • Popup Padding (optional) : Default – 15px
  • Popup Background Color (optional) : Gray
  • Popup Text Color (optional) : Default – Black
  • Popup Font Size (optional) : Default – 13px
  • Hide Close Button (optional) : Default – Show
  • Close Button Text (optional) : Default – x
  • Hide Accept Button (optional) : Default – Show
  • Accept Button Text (optional) : Default – Ok
  • Accept Button Background Color (optional) : Default – inherited from button tag
  • Accept Button Text Color (optional) : Default – inherited from button tag
  • Accept Button Class (optional)
  • Hide Read More Link (optional) : Default – Show
  • Read More Color (optional) : Default – inherited from theme style
  • Read More Text (optional) : Default – Read more…
  • Read More Link (optional) : Default – #
  • Reamore Link Target (optional) : Default – _self
  • Reamore Link class (optional)
  • Multi language compatible
  • .pot file included for translations

Filters and Functions

The code would be placed in your theme functions.php file or a custom plugin.

Would you like to do something if cookie accepted

<?php
if ( function_exists('LWCP_cookie_accepted') && LWCP_cookie_accepted() ) {
    // Write your code here
}
?>

This example for the override options by filtering ‘lwcp_options_args’ filter.

<?php
function my_popup_options_args_filter( $options ) {
    // do something with $options
    return $options;
}
add_filter( 'lwcp_options_args', 'my_popup_options_args_filter', 10, 1 );
?>

This example for the override output by filtering ‘lwcp_cookie_output’ filter.

<?php
function my_popup_output_filter( $output, $options ) {
    // do something with $output and $options
    return $output;
}
add_filter( 'lwcp_cookie_output', 'my_popup_output_filter', 10, 2 );
?>

More Information

Support

Did you enjoy this plugin? Please donate to support ongoing development. Your contribution would be greatly appreciated.

Plums

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

导航

说明

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

© 2026 Plums