MLX Cookie Consent

外掛說明

MLX Cookie Consent is a lightweight, developer-friendly cookie consent solution built by Modulux.

It provides the technical tools to control when scripts and embedded content load based on user consent.
When configured and used correctly, it can support compliance efforts for GDPR, ePrivacy, UK GDPR,
and similar regulations.

This plugin does not automatically make your site legally compliant.
You are responsible for correctly classifying scripts, providing accurate information,
and maintaining proper privacy and cookie policy pages.

Project home: modulux.net

MLX Cookie Consent is multilingual-ready and works with WPML or Polylang via String Translation.
All user-facing texts (titles, descriptions, buttons, category labels) can be translated per language.

External Services

This plugin does not connect to any external or third-party services by default.

MLX Cookie Consent does not send data to external servers, does not load remote scripts, and does not perform any tracking on its own.

The plugin provides a technical mechanism that allows site administrators to conditionally load third-party scripts (such as analytics, maps, fonts, or captcha services) after obtaining user consent.

Any external services (e.g. Google Analytics, Google Maps, reCAPTCHA) are:
– Added manually by the site administrator
– Loaded only after explicit user consent
– Fully controlled and configured by the site owner

MLX Cookie Consent does not transmit any data to these services itself. Any data transmission is performed directly between the visitor’s browser and the third-party service, according to the configuration and privacy policies of that service.

Features

  • Script loading blocked until user consent
  • Category-based consent (necessary, analytics, marketing, etc.)
  • Preferences modal with granular control
  • Consent revisioning to re-ask users when policies change
  • Supports external scripts, inline scripts, iframes, and embeds
  • Developer hooks for advanced customization
  • No external dependencies, bundled internal JS engine

Libraries Used

This plugin bundles the following open-source library:

CookieConsent by Orest Bida
License: MIT

The library is included locally with the plugin and does not perform any network requests or data transmission by itself.

Usage

Scripts are output as inactive placeholders and executed only after consent:

Examples include:
* Google Analytics
* Google Fonts
* Google Maps
* reCAPTCHA
* Third-party widgets and embeds

Iframes and embedded content should be loaded dynamically after consent using JavaScript.

Multilingual

MLX Cookie Consent integrates with WPML and Polylang via String Translation.
Texts stored in plugin options are automatically available for translation.
Script logic remains category-based and shared across languages.

Advanced (Developers)

The plugin exposes optional WordPress filters:

  • mlx_cc_options
  • mlx_cc_categories
  • mlx_cc_sections
  • mlx_cc_preferences

These filters allow programmatic customization such as language-based logic,
conditional script loading, or dynamic category handling.

螢幕擷圖

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/mlx-cookie-consent directory, or install via WordPress.
  2. Activate the plugin through the Plugins screen.
  3. Go to Settings MLX Cookie Consent.
  4. Configure layout, content, categories, and preferences.
  5. Test in a private/incognito window to confirm scripts load only after consent.

常見問題集

Does this plugin guarantee GDPR compliance?

No. It provides technical tools only. Legal compliance depends on correct configuration and legal review.

Does it work with caching plugins?

Yes. Always test after enabling caching.

Can I load different scripts per language?

Yes, via developer filters or custom logic.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈MLX Cookie Consent〉的開發相關工作。

參與者

將〈MLX Cookie Consent〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release