WP Consent API JS #9 in Privacy & Compliance
Forks the JavaScript Consent API in rlankhorst/wp-consent-level-api
by Rogier Lankhorst and Human Made · github.com/humanmade/consent-api-js · website
★ 4stars
206kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/humanmade/consent-api-js/archive/refs/heads/main.zipAlso on Packagist as altis/consent-api:
composer require altis/consent-apiFrom the readme
Altis Consent API
Forks the JavaScript Consent API in rlankhorst/wp-consent-level-api
Removes the PHP-based API entirely in favor of the JS-only consent API.
Note: In order for linting to work properly, eslint must already be installed and exist globally.
Description
Consent API to read and register the current consent category, allowing consent management plugins and other plugins to work together, improving compliancy.
What problem does this plugin solve?
Currently it is possibly for a consent management plugin to block third party services like Facebook, Google Maps, Twitter, etc. But if a WordPress plugin places a PHP cookie, a consent management plugin cannot prevent this.
Secondly, there are plugins that integrate tracking code on the clientside in javascript files that, when blocked, break the site.
Or, if such a plugin's javascript is minified, causing the URL to be unrecognizable, it won't get detected by an automatic blocking script.
Lastly, the blocking approach requires a list of all types of URL's that place cookies or use other means of tracking. A generic API where plugins adhere to can greatly
facilitate a webmaster in getting a site compliant.
Does usage
Read the full README on GitHub →