{"id":87761,"date":"2018-06-27T11:24:52","date_gmt":"2018-06-27T11:24:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/light-weight-cookie-popup\/"},"modified":"2024-10-31T11:33:47","modified_gmt":"2024-10-31T11:33:47","slug":"light-weight-cookie-popup","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/light-weight-cookie-popup\/","author":14148059,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"6.6.5","requires":"3.6","requires_php":"5.2.4","requires_plugins":null,"header_name":"Light Weight Cookie Popup","header_author":"Tushar Kapdi","header_description":"Light Weight Cookie Popup allows you to inform to users that your site uses cookies and to comply with the EU cookie law regulations.","assets_banners_color":"07111a","last_updated":"2024-10-31 11:33:47","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/amplebrain.com\/donate\/","header_plugin_uri":"http:\/\/amplebrain.com\/light-weight-cookie-popup\/","header_author_uri":"http:\/\/amplebrain.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1589,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<p>This is the initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1899909,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1899909,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":1899909,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1899909,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Popup options"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[20278,230407,230409,131785,230408],"plugin_category":[],"plugin_contributors":[87130],"plugin_business_model":[],"class_list":["post-87761","plugin","type-plugin","status-publish","hentry","plugin_tags-cookie-compliance","plugin_tags-display-within-countries","plugin_tags-eu-cookie-law-regulations","plugin_tags-gdpr","plugin_tags-notice-for-gdpr","plugin_contributors-tusharkapdi","plugin_committers-tusharkapdi"],"banners":{"banner":"https:\/\/ps.w.org\/light-weight-cookie-popup\/assets\/banner-772x250.png?rev=1899909","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/light-weight-cookie-popup\/assets\/icon-128x128.png?rev=1899909","icon_2x":"https:\/\/ps.w.org\/light-weight-cookie-popup\/assets\/icon-256x256.png?rev=1899909","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/light-weight-cookie-popup\/assets\/screenshot-1.png?rev=1899909","caption":"Popup options"}],"raw_content":"<!--section=description-->\n<p><strong>Try it out on your free dummy site: Click here =&gt; <a href=\"https:\/\/tastewp.com\/new?pre-installed-plugin-slug=light-weight-cookie-popup&amp;redirect=options-general.php%3Fpage%3Dlwcp&amp;ni=true\">https:\/\/tastewp.com\/new?pre-installed-plugin-slug=light-weight-cookie-popup&amp;redirect=options-general.php%3Fpage%3Dlwcp&amp;ni=true<\/a><\/strong><\/p>\n\n<p><strong>Light Weight Cookie Popup<\/strong> where you can inform to users that your site uses cookies and to comply with the EU cookie law regulations.<\/p>\n\n<h4>Options<\/h4>\n\n<ul>\n<li>Message (optional)<\/li>\n<li>Cookie Expiry (optional) : Default - 1 day<\/li>\n<li>Country (Display within selected countries) (optional) : Default - All Countries<\/li>\n<li>Position: Top\/Bottom (optional) : Default - Bottom<\/li>\n<li>Popup Padding (optional) : Default - 15px<\/li>\n<li>Popup Background Color (optional) : Gray<\/li>\n<li>Popup Text Color (optional) : Default - Black<\/li>\n<li>Popup Font Size (optional) : Default - 13px<\/li>\n<li>Hide Close Button (optional) : Default - Show<\/li>\n<li>Close Button Text (optional) : Default - x<\/li>\n<li>Hide Accept Button (optional) : Default - Show<\/li>\n<li>Accept Button Text (optional) : Default - Ok<\/li>\n<li>Accept Button Background Color (optional) : Default - inherited from button tag<\/li>\n<li>Accept Button Text Color (optional) : Default - inherited from button tag<\/li>\n<li>Accept Button Class (optional)<\/li>\n<li>Hide Read More Link (optional) : Default - Show<\/li>\n<li>Read More Color (optional) : Default - inherited from theme style<\/li>\n<li>Read More Text (optional) : Default - Read more...<\/li>\n<li>Read More Link (optional) : Default - #<\/li>\n<li>Reamore Link Target (optional) : Default - _self<\/li>\n<li>Reamore Link class (optional)<\/li>\n<li>Multi language compatible<\/li>\n<li>.pot file included for translations<\/li>\n<\/ul>\n\n<h4>Filters and Functions<\/h4>\n\n<p>The code would be placed in your theme functions.php file or a custom plugin.<\/p>\n\n<p>Would you like to do something if cookie accepted<\/p>\n\n<pre><code>&lt;?php\nif ( function_exists('LWCP_cookie_accepted') &amp;&amp; LWCP_cookie_accepted() ) {\n    \/\/ Write your code here\n}\n?&gt;\n<\/code><\/pre>\n\n<p>This example for the override options by filtering 'lwcp_options_args' filter.<\/p>\n\n<pre><code>&lt;?php\nfunction my_popup_options_args_filter( $options ) {\n    \/\/ do something with $options\n    return $options;\n}\nadd_filter( 'lwcp_options_args', 'my_popup_options_args_filter', 10, 1 );\n?&gt;\n<\/code><\/pre>\n\n<p>This example for the override output by filtering 'lwcp_cookie_output' filter.<\/p>\n\n<pre><code>&lt;?php\nfunction my_popup_output_filter( $output, $options ) {\n    \/\/ do something with $output and $options\n    return $output;\n}\nadd_filter( 'lwcp_cookie_output', 'my_popup_output_filter', 10, 2 );\n?&gt;\n<\/code><\/pre>\n\n<h4>More Information<\/h4>\n\n<ul>\n<li>For help use <a href=\"http:\/\/wordpress.org\/support\/plugin\/light-weight-cookie-popup\/\">wordpress.org<\/a><\/li>\n<li>Fork or contribute on <a href=\"https:\/\/github.com\/tusharkapdi\/light-weight-cookie-popup\/\">Github<\/a><\/li>\n<li>Visit <a href=\"http:\/\/amplebrain.com\/light-weight-cookie-popup\/\">our website<\/a> for more<\/li>\n<li>Follow me on <a href=\"http:\/\/twitter.com\/tusharkapdi\/\">Twitter<\/a><\/li>\n<li>View my other <a href=\"https:\/\/profiles.wordpress.org\/tusharkapdi\/\">WordPress Plugins<\/a><\/li>\n<\/ul>\n\n<h4>Support<\/h4>\n\n<p>Did you enjoy this plugin? Please <a href=\"http:\/\/amplebrain.com\/donate\/\">donate to support ongoing development<\/a>. Your contribution would be greatly appreciated.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and extract the zip archive<\/li>\n<li>Upload 'light-weight-cookie-popup' folder to '\/wp-content\/plugins\/'<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Manage popup settings through the 'Light Weight Cookie Popup' under the 'Settings' menu and configure the options as desired<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='detail%20about%20third%20party%20api%20for%20country%20detection'><h3>Detail about Third Party API for country detection<\/h3><\/dt>\n<dd><p>Country is optional field and by default display popup on all countries and not access the Third Party API.\nIf you set countries then only it will access the Third Party API to get country name from IP Address.\nThe API called 'ipinfo.io' and Free usage of API is limited to 1,000 API requests per day.\nPlease find more inforamation about API here - <a href=\"https:\/\/ipinfo.io\/developers#rate-limits\">https:\/\/ipinfo.io\/developers#rate-limits<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Light Weight Cookie Popup allows you to inform to users that your site uses cookies and to comply with the EU cookie law regulations.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/87761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=87761"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tusharkapdi"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=87761"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=87761"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=87761"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=87761"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=87761"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=87761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}