✒️ Garrett Hyder has written a proposal for a WP Consent API and a Consent API as a feature plugin. As Garrett explains:
“A standard way for WordPress core, plugins, and themes to obtain consent from users should be established to provide a consistent and stable experience for administrators, developers, and users of all kinds.”