CookieJar displays a small, accessible cookie consent banner and lets you set:
* Message & policy link
* Accept & Learn More text
* Position (top or bottom)
* Light or dark theme
* Consent expiration days
It sets a simple cookie (cookiejar_consent=1). You can then conditionally load non-essential scripts (analytics, ads, etc.) only after consent.
DISCLAIMER: This plugin does NOT guarantee legal compliance. Regulations (GDPR, CCPA, ePrivacy, etc.) vary by jurisdiction and implementation. Consult qualified legal counsel for requirements applicable to your site.
Features
- Zero jQuery dependency
- Tiny CSS/JS
- Hooks & filters for extensibility
- WP translation ready
- Accessible markup (role=」dialog」, aria-label)
- Helper function
cookiejar_has_consent()
Hooks
Action: cookiejar_banner_before( $settings )
Action: cookiejar_banner_after( $settings )
Filter: cookiejar_public_settings( $settings )
Filter: cookiejar_consent_cookie_name( $name )
Filter: cookiejar_cookie_attributes( $attrs )
Development
Generate / update translation template file:
wp i18n make-pot . languages/cookiejar.pot --exclude=assets,node_modules,vendor
Credits
Developed by DemeWebSolutions.com / Kenneth 「Demetrius」 Weaver.
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 (or later) as published by the Free Software Foundation.
Privacy
This plugin itself does not log personal data. You are responsible for ensuring any third-party scripts you conditionally load respect user privacy.
Legal
Not legal advice. Confirm regional requirements independently.






