legal_put_accessibility
Configure a self-hosted WordPress accessibility widget and markup repair rules without third-party requests or consent. Merges updates, rewrites the privacy statement, and returns saved settings.
Instructions
Configure the self-hosted accessibility tool (replaces the Ally widget; no third-party request, needs no consent). Merges: omitted keys keep their value. Switching enabled rewrites a generated Datenschutz (section Barrierefreiheits-Werkzeug). Returns the stored settings. Requires cvrt-legal 0.8.0+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| color | No | Launcher colour, #rrggbb | |
| tools | No | tool key => on/off (see available_tools in legal_get_accessibility) | |
| enabled | No | ||
| repairs | No | Markup repair rule => on/off (cvrt-legal 0.9.0+): link-names, image-alt, iframe-title, form-labels, skip-link, lang, zoom, new-tab, duplicate-ids. Server-side, never invents or overwrites; see available_repairs | |
| position | No | ||
| sitemap_url | No | https URL for the Sitemap tool; empty = /wp-sitemap.xml | |
| statement_url | No | https URL of an external statement; the page wins | |
| statement_page | No | Page id of the accessibility statement; 0 = none |