跳到内容

IL Privacy & Cookie Consent

v1.4.1

Yossi Haephrati · 2025年12月27日 上架

Cookie and privacy consent plugin compliant with Israeli law (Amendment 13), supports RTL, accessibility, and consent event logging.

正在使用
200+
评分
5.0 / 5
累计下载
2,010
最近更新
2026年7月14日
2 条评价需要 WordPress 5.8+已测试到 7.0.9PHP 7.4+

截图

Consent banner at bottom of page - Hebrew view with RTL support
Consent banner at bottom of page - Hebrew view with RTL support
Detailed preferences modal - Granular category selection
Detailed preferences modal - Granular category selection

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.

Key Features

  • Customizable consent banner – Floating window at the bottom of the page with options: “Accept All”, “Reject Non-Essential Cookies”, “Preferences”
  • Detailed preferences modal – Granular selection of categories: Essential (required), Analytics, Marketing, Functional
  • Script blocking – Map scripts to categories and block them until appropriate consent is obtained
  • Consent event logging – Database storage with IP hash, User Agent, date, version (compliant with Amendment 13)
  • CSV log export – Export consent data for reporting
  • Privacy policy page – Automatic creation of draft page with [ilpramco_policy] shortcode
  • Cookies table – [il_cookies_table] shortcode to display cookie catalog
  • Marketing consent for forms – [il_marketing_consent] shortcode for forms
  • RTL and accessibility – Full RTL support, WCAG, keyboard navigation, focus trap
  • Lightweight – Very small JS+CSS (< 10KB gzipped), no jQuery dependency
  • DNT support – Option to respect Do Not Track

Minimum Requirements

  • WordPress 5.8 or higher
  • PHP 7.4 or higher (supports PHP 8.1+)

Usage

Shortcodes:

  • [ilpramco_policy] – Displays the full privacy policy
  • [ilpramco_cookies_table] – Displays cookies table
  • [ilpramco_marketing_consent] – Marketing consent checkbox for forms

JavaScript 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);

});
`

Privacy & Legal

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums