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 #202 among WordPress.org plugins with 200,000+ active installations, is #38 of 5,058 in the Security category, a 5/5 rating from 2 reviews, and was last updated Oct 15, 2026. Data from WordPress.org, refreshed twice daily — see methodology.

Compatible with WP 7.1.4
v2.1.0 Current Version v2.1.0
Updated 2 weeks ago Last Update on 15 Oct, 2026
Refreshed 18 hours ago Last Refreshed on
#38 of 5,058 in Security Top 1% by installs Downloads -23.3% this week Actively maintained
View on WordPress.org
Rank
#202
— No change
Active Installs
200K+
-32.5%
KW Avg Position
9
0.4 better
Downloads
1.2M
+277 today
Support Resolved
50%
— No change
Rating
100%
Review 5 out of 5
5 (2 reviews)

Next Milestone 300K

Total Progress 98.8%
200K+ 300K+
1
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 1,250 more installs to reach 300K+

Rank Changes

182 193 204 214 225 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
182 193 204 214 225 17-10-2026 18-10-2026 19-10-2026 20-10-2026 21-10-2026 22-10-2026 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
Current #202
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 500 1K 1.5K 2K 2.5K 3K 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026
0 1K 2K 3K 4K 17-10-2026 18-10-2026 19-10-2026 20-10-2026 21-10-2026 22-10-2026 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-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
2
Total Threads
1
Resolved
1
Unresolved
50%
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.