
Consent banner at bottom of page - Hebrew view with RTL support
IL Privacy & Cookie Consent is a comprehensive, production-ready plugin for displaying cookie consent banners, blocking non-essential scripts until consent is obtained, logging consent events (compliant with Amendment 13 of the Israeli Privacy Protection Law), creating privacy policy pages, supporting RTL and accessibility, with Hebrew defaults.
[ilpramco_policy] shortcode[il_cookies_table] shortcode to display cookie catalog[il_marketing_consent] shortcode for formsShortcodes:
[ilpramco_policy] – Displays the full privacy policy[ilpramco_cookies_table] – Displays cookies table[ilpramco_marketing_consent] – Marketing consent checkbox for formsJavaScript API:
`javascript
// Get current consent
const consent = window.ILPrivacy.getConsent();
// Register callback for changes
window.ILPrivacy.onChange(function(consent) {
console.log(‘Consent updated:’, consent);
});
// Enable a category
window.ILPrivacy.enableCategory(‘analytics’);
// Check if category is enabled
if (window.ILPrivacy.isCategoryEnabled(‘marketing’)) {
// Load marketing scripts
}
// Open preferences modal
window.ILPrivacy.openPreferences();
// Revoke consent
window.ILPrivacy.revokeConsent();
`
Script Mapping:
`php
// Add script to category
add_action(‘wp_enqueue_scripts’, function() {
wp_enqueue_script(‘google-analytics’, ‘…’, [], ‘1.0’, true);
// Map to category
$mapping = get_option('ilpramco_script_mapping', []);
$mapping['google-analytics'] = 'analytics';
update_option('ilpramco_script_mapping', $mapping);
});
`
This plugin is designed to help comply with Amendment 13 of the Israeli Privacy Protection Law and GDPR regulations in Europe. However, using this plugin does not constitute legal advice and does not guarantee full legal compliance. It is recommended to consult with a legal advisor regarding your specific legal requirements.
The plugin stores the following data:
* User ID (if user is logged in)
* Session ID (UUID)
* Hash of IP address (SHA256 with salt)
* User Agent
* Consent (categories, version, date)
The plugin does not store raw IP addresses.