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.
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.
- Using a blocking approach to handle privacy requires a list of all types of URLs when dealing with
and other types of tracking.
Read more on WP Tavern