Oven Cookie Consent

Oven Cookie Consent

توسط

Oven integrates the CookieConsent JavaScript library (v3.1.0) into WordPress to provide a compliant, accessible cookie consent experience.

Features

  • Cookie consent banner – Shows a consent modal to visitors on first visit with Accept all, Essential only, and Manage preferences.
  • Automatic cookie detection – Enable “Cookie detection mode” in settings, then browse your site while logged in as an administrator. Cookies set during your visit are detected and added to the list.
  • Essential vs non-essential – WordPress core cookies (login, session, comments, settings) are classified as essential; third-party and analytics cookies as non-essential. Visitors see both categories in the preferences modal.
  • Revision and re-consent – When a new cookie is detected and added, the revision number is incremented. All visitors (including those who had previously accepted) must consent again.
  • Logged-in vs guest – For guests, consent is stored in a cookie so they are not prompted on every visit (until the revision changes). For logged-in users, consent is stored in the database (user meta) tied to their account.
  • Consent logging – For logged-in users, each consent choice is recorded in their profile. Admins and editors can view when a user accepted and which cookies they accepted (Users edit user Cookie consent).
  • Cookie descriptions – You can edit a short description for each cookie so visitors know what it does. Descriptions are shown in the preferences modal.
  • Privacy policy link – Optional privacy policy URL in settings is shown in the consent modal (recommended for GDPR).
  • Accessibility – Uses the CookieConsent library’s built-in ARIA attributes and keyboard support.

Settings

  • Settings Oven – Enable cookie consent, enable cookie detection mode, set an optional privacy policy URL (recommended for GDPR), and view or edit the list of detected cookies and their descriptions.

GDPR and compliance

Oven is designed to support compliance with the GDPR and similar laws:

  • Consent before non-essential cookies – Non-essential cookies and scripts that set them are blocked until the user accepts. Essential cookies (e.g. login, session) are allowed without consent.
  • Clear information – Visitors see a list of cookies with names and descriptions (editable in settings). You can link to your privacy policy from the consent modal.
  • Granular choice – Users can accept all, essential only, or manage preferences and toggle individual non-essential cookies.
  • Withdraw consent – Users can reopen the preferences modal and change or withdraw consent at any time. Rejected non-essential cookies are cleared on each visit.
  • Re-consent when policy changes – When you add or reclassify cookies, the revision number increases and all visitors are asked to consent again.
  • Consent logging (logged-in users) – For registered users, consent choices and timestamps are stored in their profile. Admins and editors can view consent history under Users [user] Cookie consent. Guest consent is not logged (stored only in a cookie).
  • Transparency – Cookie detection mode helps you build an accurate cookie list; you can add cookies manually and describe what each one does.

Requirements

  • PHP 7.4 or higher
  • WordPress 5.9 or higher

Credits

  • CookieConsent (v3.1.0) by Orest Bida – https://github.com/orestbida/cookieconsent – MIT License.
  1. Upload the plugin folder to wp-content/plugins/. The folder name (e.g. Oven or oven) is used in asset URLs; use the name that matches your server (case-sensitive on Linux).
  2. Activate the plugin.
  3. Go to Settings Oven – enable “Enable cookie consent” and optionally “Cookie detection mode”.
  4. If using detection mode, browse your site as an admin to detect cookies; they will be added to the list and shown to visitors.

Optional: Redirect wrong casing (Apache)

If your plugin folder is Oven (capital O) and you want requests to .../plugins/oven/... to work, add this to wp-content/plugins/.htaccess (create the file if it doesn’t exist):

RewriteEngine On
RewriteRule ^oven/(.*)$ Oven/$1 [L,R=301]

If your folder is oven (lowercase), use the opposite rule to redirect Oven to oven.

سوالات متداول

Where is consent stored for logged-in users?

Consent is stored in user meta under the key oven_cookie_consent. For guests, it is stored in a cookie named oven_cc.

What happens when a new cookie is detected?

When detection mode is on and you (as an admin) browse the site, any new cookie names are sent to the server, classified as essential or non-essential, and saved. The revision number is incremented so all visitors must re-accept the cookie policy.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
هیچ نسخه‌ای برای این آیتم موجود نیست.
بدون امتیاز

قیمت:

رایگان

نگارش

آخرین انتشار

20 خرداد 1405

آخرین بروزرسانی

2 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 5.9+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 7.4+

نسخه ها

0 نسخه