WP Consent API
by Rogier Lankhorst 5 (2 reviews)

WP Consent API

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

WP Consent API ranks #211 among WordPress.org plugins with 200,000+ active installations, is #38 of 4,473 in the Security category, a 5/5 rating from 2 reviews, and was last updated Sep 15, 2026. Data from WordPress.org, refreshed twice daily — see methodology.

Compatible with WP 7.1
v2.1.0 Current Version v2.1.0
Updated 16 hours ago Last Update on 15 Sep, 2026
Refreshed 7 hours ago Last Refreshed on
#38 of 4,473 in Security Top 1% by installs Actively maintained
View on WordPress.org
Rank
#211
+1 this week
Active Installs
200K+
-30.4%
KW Avg Position
10.8
0.4 better
Downloads
820.7K
+7,079 today
Support Resolved
100%
No change
Rating
100%
Review 5 out of 5
5 (2 reviews)

Next Milestone 300K

Total Progress 93.7%
200K+ 300K+
5
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 6,330 more installs to reach 300K+

Rank Changes

191 201 212 222 232 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026
191 202 213 223 234 31-08-2026 01-09-2026 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026
Current #211
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 2K 4K 6K 8K 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026
0 2K 4K 6K 8K 31-08-2026 01-09-2026 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
2 reviews
Overall 100%
5
2 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Support Threads Overview

Resolved
Unresolved
1
Total Threads
1
Resolved
0
Unresolved
100%
Resolution Rate

Security History

Source: WPVulnerability

No known vulnerabilities on record for WP Consent API. Checked 1 week ago.

TL;DR

AI summary of the plugin's readme

This plugin is for WordPress site owners and plugin developers who need cookie banner plugins and tracking/cookie-setting plugins to communicate about user consent. It solves the problem that consent management plugins alone cannot block PHP-set cookies or clientside tracking scripts, by providing a shared API for reading and registering consent categories and services.

  • Register consent categories
  • Check consent via wp_has_consent
  • Region-based consent_type (opt-in/opt-out)
  • JavaScript consent change events
  • PHP cookie registration for display
  • Service-level consent control
  • wp_has_service_consent and wp_is_service_denied
  • Client-side and server-side service consent

Frequently Asked Questions

Common questions about WP Consent API

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.
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). Please check out the example plugin, and the above code examples.
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: Cookies or any other form of local storage required to create user profiles to send advertising or to track the user on a website or across websites for similar marketing purposes. Functional: The cookie or any other form of local storage is used for the sole purpose of carrying out the transmission of a communication over an electronic communications network; OR The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user. If cookies are disabled, the requested functionality will not be available. This makes them essential functional cookies. Preferences: Cookies or any other form of local storage that can not be seen as statistics, statistics-anonymous, marketing or functional, and where the technical storage or access is necessary for the legitimate purpose of storing preferences.

Sign In / Register

You need to sign in or register to use this feature.