=== ZeeMee Cookie Consent ===
Contributors: Nichlas Findinge Larsen
Tags: cookies, consent, cmp, gdpr, consent-mode
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A free, simple, and flexible consent management plugin with language-based profiles, cookie documentation, import/export, and Consent Mode support.

== Description ==

ZeeMee Cookie Consent is a lightweight consent management plugin for WordPress.

Features:

* Create one consent profile per HTML language code.
* Automatically match profiles to the current `<html lang="">` value.
* Choose any profile as a fallback.
* Supports Google Consent Mode updates.
* Optional Google Tag Manager loading after consent.
* Built-in cookie documentation shortcode: `[cmp_cookie_documentation]`.
* Built-in Gutenberg block for the cookie documentation table.
* Cookie discovery for administrators while browsing the site.
* JavaScript-assisted frontend cookie scan for logged-in administrators.
* Export and import cookie documentation as JSON.
* Manual cookie entry with per-language purposes.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install the ZIP through the WordPress Plugins screen.
2. Activate the plugin through the WordPress Plugins screen.
3. Go to **Cookie Consent > Add New** and create one or more language profiles.
4. Set the HTML lang code for each profile, for example `en-US` or `da-DK`.
5. Go to **Cookie Consent > Settings** and choose a fallback profile.
6. Insert `[cmp_cookie_documentation]` on a page, or use the **Cookie Documentation** block.

== Frequently Asked Questions ==

= How does the plugin choose a profile? =

The plugin compares the current `<html lang="">` value to the profile HTML lang code. If no exact match is found, it uses the selected fallback profile.

= Does the plugin translate text automatically? =

No. You create separate consent profiles and define the texts yourself per HTML lang code.

= Can I use Google Tag Manager? =

Yes. Add a GTM container ID to a profile. The container is only loaded after functional, analytics, or marketing consent is granted.

= Can I move cookie documentation between sites? =

Yes. Export the cookie register as JSON and import it on another site running ZeeMee Cookie Consent.

== Changelog ==

= 1.1.0 =
* Added JSON export and import for cookie documentation.
* Added a Gutenberg block for the cookie documentation table.
* Added uninstall cleanup for plugin options.
* Added JavaScript-assisted frontend cookie scanning for logged-in administrators.
* Added plugin settings link on the Plugins screen.
* Improved admin copy and packaging for WordPress.org submission.

= 1.0.6 =
* Fixed remaining Plugin Check warnings for POST array sanitization.

= 1.0.3 =
* Fixed Plugin Check warnings for unslashed and non-sanitized array POST input.

= 1.0.2 =
* Fixed Plugin Check issues for i18n placeholder comments, input sanitization, readme metadata, and WordPress.org language loading.

= 1.0.0 =
* Initial release.
