Altru Cookie Consent releases
A lightweight, modular, and 100% free cookie consent manager for WordPress. Clean code with zero premium upsells.
by AltruCode · github.com/altrucode/altru-cookie-consent · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/altrucode/altru-cookie-consent/archive/refs/heads/main.zipReadme
Altru Cookie Consent
A lightweight, modular, and 100% free cookie consent manager for WordPress. Clean code with zero premium upsells.
Features
- 100% GDPR / DSGVO Compliant Interface: Visual equality for "Accept All" and "Reject All" buttons to prevent dark patterns and ensure legal compliance.
- Granular Consent Panel: Users can toggle individual cookie categories, including Necessary, Functional, Analytics, and Marketing.
- Subtle Re-open Trigger Button: A discreet, monochrome, translucent floating cookie (🍪) icon in the bottom-left corner of the viewport, allowing users to modify or withdraw consent at any time.
- Bulletproof Server-side Script Blocking: Intercepts script tags using Output Buffering (
ob_start/template_redirect) to rewrite type tags and prevent script preloading before consent is granted. It even intercepts hardcoded scripts in theme files. - Multilingual Support: Fully translatable utilizing the WordPress-standard
apply_filtershook, plus built-in native integration with Polylang and WPML String Translation (icl_register_string).
Installation
- Go to the GitHub repository Releases section and download the latest
altru-cookie-consent.zipfile. - Log into your WordPress admin dashboard (
/wp-admin). - Navigate to Plugins -> Add New -> Upload Plugin.
- Choose the downloaded
.zipfile and click Install Now. - Once installed, click Activate.
- Navigate to Settings -> Altru Cookie Consent to configure your cookie banner settings and customize the appearance.
Developer API
You can customize the texts and strings programmatically or integrate custom translations using the altru_cookie_consent_text filter.
Filter Hook Example
/**
* Customize Altru Cookie Consent strings programmatically.
*
* @param string $translated_text The translated text value.
* @param string $name The unique identifier of the string.
* @return string
*/
function my_custom_altru_cookie_texts( $translated_text, $name ) {
if ( 'cookie_bar_title' === $name ) {
return 'We value your privacy on our website!';
}
return $translated_text;
}
add_filter( 'altru_cookie_consent_text', 'my_custom_altru_cookie_texts', 10, 2 );
Available string identifiers for $name:
cookie_bar_titlecookie_bar_messagebtn_accept_allbtn_reject_allbtn_preferencesmodal_titlemodal_introbtn_save_settingslabel_required
Contributing
We welcome community contributions, bug reports, and pull requests! If you find a bug, please create a new issue on GitHub or submit a Pull Request with your suggested changes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.