This article first appeared on WP Tavern by Justin Tadlock – April 3rd 2020
On Wednesday, Garret Hyder announced a feature proposal for a WordPress Consent API. The proposal is one step on the larger privacy roadmap for core. If merged into WordPress, it would establish a standard method for core, plugins, and themes to obtain consent for various privacy-related features. The idea is to create a consistent experience for developers, site administrators, and site visitors.
The WP Consent API plugin is available via the WordPress plugin directory. Development is currently happening on the plugin’s GitHub repository.
Hyder identified several areas in which an API for handling consent could help in bringing a site into compliance with various privacy laws:
- Consent management plugins cannot prevent other plugins from placing a PHP cookie.
- Plugins that integrate tracking code on the client-side could break the site if blocked by a consent management plugin.
- Minified URLs in JavaScript files may not be detected by automatic blocking scripts.
- Using a blocking approach to handle privacy requires a list of all types of URLs when dealing with cookies and other types of tracking.
Read more on WP Tavern
source: https://wptavern.com/proposal-to-add-a-consent-api-to-wordpress-feature-plugin-available