{"repo":"digitoimistodude/air-cookie","free":true,"listed":false,"github":"https://github.com/digitoimistodude/air-cookie","clone":"git clone https://github.com/digitoimistodude/air-cookie.git","description":null,"language":"PHP","stars":16,"topics":["wordpress","wordpress-plugin"],"license":null,"category":"self-hosted-apps","readme_excerpt":"Air cookie Air cookie provides simple cookie banner and management. Uses the CookieConsent javascript plugin as a base, making its usage with WordPress easier. Features - Simple and lightweight cookie banner - Third party embeds blocking until cookies accepted - Easy to load scripts and execute custom javascript when cookies are accepted - Support for multiple different cookie categories - Polylang support for multilingual websites - Visitor consent recording - Cookie categories revision control Usage Link to cookie settings Remember to add a link into the footer, which allows opening the cookie settings anytime! If you have Polylang installed and active, use Cookie categories By default, plugin has two cookie categories necessary , functional and analytics . You may add new categories with air cookie\\categories filter like shown below. When adding new categories, the function itself is responsile for handling the translations for title and description. There is also air cookie\\categories\\{category-key} filter available to change the settings of indivual category. Loading scripts after cookies have been accepted The easiest way to load external script is by altering the script tag to be: The example above works only, if the script does not require any extra javascript to be executed after the script has been loaded. If you need to execute extra javascript, use the example below. Google Tag Manager (gtm.js) Google Tag Manager (gtag.js) Google Analytics (analytics.js) Moving pl","default_branch":null,"files":null,"tree":[],"storefront":"/r/digitoimistodude","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/digitoimistodude/air-cookie/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}