WP Consent API
View on WordPress.orgScores higher than 57% of indexed plugins
About
Simple Consent API to read and register the current consent category.
What It Does
WP Consent API provides a standardized interface that lets WordPress plugins and themes read and register the current consent category for cookies and tracking scripts. In practice, it does not display a banner or store visitor preferences itself; it acts as a middle layer so other plugins (analytics, ads, embeds) can check whether a user has accepted a given consent category before loading. This allows site owners to coordinate GDPR and cookie compliance across multiple tools without forcing each plugin to reinvent consent handling.
Who It's For
This plugin is best for developers and site builders running multi-plugin WordPress stacks where multiple tools (analytics, marketing, embedded media) need to honour a single consent state. It is also useful for European e-commerce stores, SaaS platforms with international users, and agencies who want a shared, predictable consent layer across client sites. Non-technical site owners should not treat it as a complete cookie solution.
Who Should Skip It
If you just need a simple cookie banner and do not run multiple third-party scripts that need to react to consent categories, skip this and install a dedicated banner plugin like Complianz or CookieAdmin instead. Solo bloggers on low-traffic personal sites rarely benefit from the API approach, since the overhead of wiring it up outweighs the compliance gain.
The Bottom Line
WP Consent API is a well-maintained, narrowly focused developer utility that solves the very real problem of getting many WordPress tools to agree on a single consent state, scoring 77.24/100 in this assessment. It is not a turnkey cookie banner, so beginners will be frustrated; install it only if you understand you are adding plumbing, not a user-facing solution. For most websites, pairing it with a banner plugin such as Complianz is the realistic path to compliance.
Related Plugins
Pick this instead if you want an all-in-one consent banner, cookie scan, and policy generator rather than just a developer-facing API.
Pick this when you need a lightweight, traditional cookie notice banner and a consent record for visitors without coordinating multiple plugins.
Pick this for a very narrow WooCommerce-specific compliance need (the EU withdrawal button) rather than cookie and tracking consent.
Pick this if you want a modern banner UI with multi-region presets and do not need to expose consent data to other plugins via an API.
Pick this if you want to avoid the consent question altogether by switching to privacy-friendly on-server analytics instead of adding more consent plumbing.