Repository navigation
Releases
1.1.0
Silvertrail 1.1.0 adds a bar layout, lets Global Privacy Control win over an earlier choice, and lets agents work with the plugin through WebMCP and WordPress abilities. The documentation now lives at https://silvertrail.marcwieland.name/docs/ and in the plugin's docs/ folder.
Install it from WordPress.org, with wp plugin install silvertrail --activate, or by uploading silvertrail.zip from this release.
What is new
- A bar layout, at the top or the bottom of the page. It shows both buttons side by side and opens the same preferences as the dialog.
- The page dims only while a choice is required. By default only the centred banner requires one, so the box and the bar leave the page usable.
- Global Privacy Control wins over a choice made without it, and what the visitor allows while the signal is on stays for later visits.
- The site answers
/.well-known/gpc.json, and the privacy policy guide suggests text for the signal and for records. The overview andwp silvertrail validatepoint to it until the guide has shown it. - In a browser with WebMCP, agents read the services, store a choice and list what the page loaded through five tools, instead of clicking the banner.
- From WordPress 6.9, agents set Silvertrail up through WordPress abilities, with the MCP Adapter or the REST API.
- From WordPress 7.0, Write with AI and
wp silvertrail write-styleswrite the custom styles with the AI provider set up under Settings › Connectors. Nothing is saved. - The settings have separate Design and Texts tabs, and Tools shows the setup first.
- The plugin is called Silvertrail Cookie Banner.
Upgrading
- A site with the box layout no longer requires a choice by default. Turn it on under Design, or set
require_choicetotruein thesilvertrail_settingsfilter, to keep it. - Visitors whose browser sends Global Privacy Control and who chose before this release get only essential once, and their next choice is kept.
For developers and their agents
The README is now a short introduction, and docs/ holds the complete reference. A new API page covers the PHP functions, the JavaScript API, the events, the cookie and every hook. The recipes solve needs the plugin does not ship, such as treating regions differently. llms.txt lists the pages as Markdown for agents.
1.0.0
This is the first release of Silvertrail, a small cookie banner for WordPress. Nothing loads before the visitor agrees, and rejecting takes the same one click as accepting.
Install it from WordPress.org, with wp plugin install silvertrail --activate, or by uploading silvertrail.zip from this release. The README is the complete reference.
What it does
- "Accept all" and "Only essential" sit side by side at the same size. A third button opens the choice per group and per service, with the provider, the purpose and a link to its privacy policy.
- The banner only appears when the site uses something that needs consent.
- Presets print the official tags of Google Tag Manager, Google Analytics, Google Ads, the LinkedIn Insight Tag and the Meta Pixel once you turn one on and enter its ID.
- YouTube, Vimeo and Google Maps embeds wait behind a placeholder that asks in place, and so do embeds from every host you register.
- A script marked
type="text/plain" data-silvertrail="service"waits for consent, and so does an enqueued script once its handle is listed under a service. - It sets the Google Consent Mode v2 default before any Google tag and supports the WP Consent API.
- It works behind any page cache without extra configuration.
- A browser that sends Global Privacy Control gets "only essential" without a banner.
- It asks every visitor again when the set of services changes.
- Optional records keep a random consent ID, the choices and the time of each decision, with no IP address.
- A link, block or shortcode reopens the preferences, and an optional floating button does the same.
- The banner takes its colours from the theme's
theme.json, and asilvertrail/silvertrail.cssin the theme overrides the rest. - Each site of a multisite network keeps its own cookie.
- The front end loads one script of 15 KB, under 5 KB compressed, and no jQuery.
For developers and their agents
- One filter sets any setting, and the settings page marks each field that code sets.
wp silvertrail servicesandwp silvertrail settingsshow every service and setting with its source, andwp silvertrail validatereports what is wrong.- The Leak check under Settings › Silvertrail › Tools opens pages as a first-time visitor and lists what runs without consent and what starts only after a reload. A Playwright helper in the
testingfolder runs the same check in CI. - The admin copies a prompt for an AI assistant to style the banner, and the Leak check writes one for the services it finds.
What it does not do
It does not implement the IAB Transparency and Consent Framework, it does not detect countries, and it does not crawl the site for cookies.