Bonsai Cookie Consent
A WordPress plugin that replaces YouTube embeds with a consent-safe placeholder until CookieScript marketing consent is granted.
by Ben Ervine / The Bonsai Digital Collective · github.com/bonsai-systems/bonsai-cookie-consent · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/bonsai-systems/bonsai-cookie-consent/archive/refs/heads/main.zipDeclares an update source (https://github.com/Bonsai-Systems/bonsai-cookie-consent), so updates arrive through the plugin's own updater.
From the readme
Bonsai Cookie Consent - CookieScript
A WordPress plugin by The Bonsai Digital Collective that replaces YouTube embeds with a consent-safe placeholder until CookieScript marketing consent is granted.
Status: Stable
Requires: WordPress 6.4+ • PHP 7.4+
What It Does
- Converts YouTube embeds to youtube-nocookie
- Adds CookieScript-compatible attributes:
- data-src
- data-cookiecategory
- Shows a consent placeholder before consent:
- Thumbnail image
- Darkened overlay
- Centred consent message
- Centred CTA link/button
- Automatically reveals the iframe when CookieScript loads the src
Admin Settings
Path: Settings Cookie Video Consent
- Cookie category key — CookieScript category key to assign to video embeds (default: marketing).
- Default video background image URL — If set, this overrides all YouTube thumbnails.
- Consent text — Overlay message shown before consent. If left empty, the plugin default is used.
- Consent link URL (optional) — If provided, CTA links to this URL. If empty, CTA attempts to open the CookieScript preferences popup.
- Consent link label — Text shown on the CTA button.
Requirements
- WordPress 6.4+
- PHP 7.4+
- CookieScript installed an
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.