Manage cookie consent, privacy documents, regional rules and website scanning in WordPress with the broader Complianz privacy suite.
WP Consent API
Plugin Health & Stats
Historical overview
364-day WordPress.org historyQuick take: WP Consent API solves a coordination problem rather than a banner-design problem. It gives compatible WordPress plugins a common way to ask whether a visitor has allowed a consent category or a specific service. That matters when one plugin collects consent and another plugin needs to decide whether it may set a cookie, load tracking, or run related behavior.
Best fit: WordPress sites combining a consent manager with plugins that explicitly support the shared API.
Operating model: A local interoperability layer inside WordPress. A separate consent-management plugin is still required.
What problem the API actually solves
Consent tooling becomes messy when every plugin invents its own way to store a visitor choice. A banner may know that marketing consent was denied, while an analytics or form plugin has no reliable standard method to read that decision. WP Consent API creates that common vocabulary. Compatible plugins can work with categories such as functional, preferences, statistics, anonymous statistics, and marketing instead of building a one-off connection to every banner plugin.
The distinction is important for buyers. Installing this plugin does not suddenly make a site compliant, and it does not replace the interface visitors use to give or refuse consent. Think of it as plumbing between components. The consent manager records the choice; supported plugins can then use the API to react consistently.
Category consent and service-level consent
The original model centers on consent categories. A plugin can check whether marketing or statistics activity is permitted and change its behavior accordingly. The current API also supports service-level control. That lets a consent manager distinguish a named service, such as a particular analytics or advertising integration, from the broader category it belongs to.
Service-level control is useful when a visitor accepts a broad category but refuses one specific service. The API first looks for an explicit service decision and can fall back to the category decision when no service-specific choice exists. Both PHP and JavaScript interfaces are available, so developers can apply the same consent logic to server-side and browser-side behavior.
Where it fits in a real privacy stack
A practical setup might use Complianz, CookieYes, or another compatible consent-management plugin for the banner and preference center. WP Consent API then provides the shared state that another compatible plugin can read before triggering optional behavior. The WordPress.org documentation lists integrations across consent managers and consent-requiring plugins, which is the reason this small infrastructure plugin can be valuable even though visitors may never see it directly.
Compatibility should be checked plugin by plugin. If a marketing plugin ignores the API, WP Consent API cannot force that plugin to comply. Likewise, an embedded third-party iframe or script may still require blocking functionality from the consent manager. This is where the API’s scope needs to be understood clearly.
What developers get from it
For plugin developers, the main benefit is avoiding a collection of vendor-specific integrations. The API exposes functions for checking consent, setting service consent, registering cookie information, and responding when a visitor changes a decision. JavaScript events can notify front-end code about consent changes without requiring a page reload.
The API is also extensible. Categories and related behavior can be filtered, and a plugin can declare support so site owners can see whether their stack participates in the common consent layer. That makes the project more useful as an ecosystem convention than as a consumer-facing feature plugin.
Limits you should understand before installing
The biggest limitation is also the easiest one to miss: this plugin is not a consent management platform. It does not create the banner, collect the visitor’s initial choice, write your legal text, or automatically stop every external script. It only becomes meaningful when at least a consent manager and another participating plugin use the API.
I would also avoid treating API support as proof of legal compliance. Privacy requirements depend on jurisdiction, configuration, the services being used, and how data is actually processed. The plugin helps technical components communicate; legal and operational decisions remain outside its scope.
When WP Consent API is worth adding
Use it when your consent manager already supports the API and one or more other plugins in the stack can respond to the same consent state. In that situation it reduces brittle custom glue and gives developers a cleaner contract to work against.
Skip it as a standalone privacy purchase. If your real need is a banner, cookie scanner, script blocker, policy workflow, or region-aware consent interface, start with a consent-management plugin and then check whether WP Consent API improves compatibility around it.
PluginSuggest verdict
WP Consent API is a narrow plugin with an important architectural role. I would shortlist it for sites where several privacy-sensitive plugins need a shared consent language, especially when the chosen consent manager already supports it. For a simple site with one banner and no participating integrations, installing an interoperability layer adds little on its own.
FAQs
Does WP Consent API create a cookie banner?
No. A separate consent-management plugin must provide the banner and collect the visitor’s choice.
Can WP Consent API block Google Analytics or Facebook scripts by itself?
No. It provides consent signals to compatible plugins. Third-party script and iframe blocking still needs suitable functionality in the consent-management layer.
What are service-level consent controls?
They let compatible tools grant or deny a named service separately from its broader consent category, with category consent available as a fallback when no explicit service choice exists.
Does a plugin need explicit WP Consent API support?
Yes. The API is useful only when the plugins involved read or publish consent through its interfaces.
Is WP Consent API enough to make a WordPress site GDPR compliant?
No. It is a technical interoperability component, not a legal compliance service. Your consent flow, services, configuration, policies, and jurisdiction still matter.
Is WP Consent API free?
Yes. The plugin is available free from WordPress.org. Other consent-management products used with it may have their own pricing.
Compare before you install
Similar Plugins
Add cookie scanning, consent banners, automatic blocking and policy tools to WordPress through CookieYes’s managed CMP platform.
Control cookie scripts and consent inside WordPress with local data storage, customizable banners and optional Premium compliance tools.