Type to search.

#202 by installscommunity

WP Consent API

by Rogier LankhorstVersion 2.1.0

Simple Consent API to read and register the current consent category.

Active installs
200,000+
#202 of 1,000
Downloads, all time
1.2M
1,224,009
Downloads, 30 days
70.1K
15.2K in the last 7
Rating
5.0 / 5
2 reviews
Last updated
16 days ago
Oct 15, 2026
Version
2.1.0
9 releases

Upkeep and compatibility

Last updatedOctober 15, 2026Updated in the last 3 months
Tested up toWordPress 7.1.4Covers WordPress 7.1.4, the current release
Needs WordPress5.0 or newer
Needs PHP7.4 or newer
First publishedFebruary 6, 2020
Support, last two months1 of 2 threads resolved (50%)

Reviews

5.0 / 5 from 2 reviews

Reviews by star rating
5 stars2
4 stars0
3 stars0
2 stars0
1 star0

Downloads, last 30 days

Low 1.4K a dayHigh 3.8K a day

What the author says it does

WP Consent API is a plugin that standardizes the communication of accepted consent categories between plugins. It requires a cookie banner plugin and, at least, one other plugin that supports the WP Consent API.

With this plugin, all supporting plugins can use the same set of methods to read and register the current consent category, allowing consent management plugins and other plugins to work together, improving compliance with privacy laws.

WARNING: the plugin itself will not handle consent. It will show you how many plugins you have without Consent API support and will improve compliance on your site by ensuring smooth communication between cookie banner plugins and plugins that set cookies or track user data.

What problem does this plugin solve?

Currently, it is possible 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, some plugins integrate the 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 and won’t get detected by an automatic blocking script.

Lastly, the blocking approach requires a list of all types of URL’s that tracks data. A generic API where plugins adhere to can greatly

The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.

Questions the author answers

Does this plugin block third party services from placing cookies?

No, this plugin provides a framework through which plugins can know if they are allowed to place cookies or track user data.

The plugin requires both a consent management plugin for consent management and a plugin that follows the consent level as can be read from this API.

How should I go about integrating my plugin?

For each action that places cookies or tracks user data, you should consider what type of tracking takes place. There are 5 consent categories:

functional, statistics-anonymous, statistics, preferences, marketing. These are explained below. Your code should check if consent has been given for the applicable category. If no cookie banner plugin is active,

the Consent API will always return with consent (true).

What is the difference between the consent categories?

Statistics:

Cookies or any other form of local storage that are used exclusively for statistical purposes (Analytics Cookies).

Statistics-anonymous:

Cookies or any other form of local storage that are used exclusively for anonymous statistical purposes (Anonymous Analytics Cookies), that are placed on a first party domain, and that do not allow identification of particular individuals.

Marketing:

Latest changelog entry

2.1.0

Change: internally unused wp_set_cookie() function dropped in favor of upcoming WordPress core wp_set_cookie() function.

Tagged

Plugins that share its tags

#144 by installs

CookieAdmin – Cookie Consent Banner

by Softaculous

CookieAdmin provides easy to configure cookie consent banner with GDPR, CCPA and India's DPDP Act 2023 support.

Installs
400,000+
Rating
5.0 (4)
Updated
19 days ago

#348 by installs

Statify

by pluginkollektiv

Visitor statistics for WordPress with focus on data protection, transparency and clarity. Perfect as a widget in your WordPress Dashboard.

Installs
100,000+
Rating
4.8 (51)
Updated
41 days ago

#513 by installs

Disable REST API

by Dave McHale

Disable the use of the REST API on your website to site users. Now with User Role support!

Installs
80,000+
Rating
4.8 (38)
Updated
3 years ago

#526 by installs

Termly – GDPR/CCPA Cookie Consent Banner

by davidtaroko

Our easy to use cookie consent plugin can assist in your GDPR, CCPA, and ePrivacy Directive compliance efforts.

Installs
80,000+
Rating
3.6 (204)
Updated
10 months ago

Where this page's numbers come from

Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin.