We'll create fresh WordPress site with Light Weight Cookie Popup installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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.
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 );
?>
Did you enjoy this plugin? Please donate to support ongoing development. Your contribution would be greatly appreciated.