Life Time Extra Credits Offer

*Add $100 or more to claim

Validity: Nov 24 - Dec 05, 2025

WP Consent API

WP Consent API

Simple Consent API to read and register the current consent category.
Rating:
5.0
star-rating-1star-rating-2star-rating-3star-rating-4star-rating-5
Active Installations:
200000+
Last Updated:
Oct 06, 2025
WordPress Version:
5.0 or higher
Tested up to:
6.8.3

Simplify Consent Management

Improve compliance with privacy laws by standardizing consent communication between plugins.

Seamless Plugin Integration

Ensure smooth communication between cookie banner plugins and plugins that set cookies or track user data.

Enhance Privacy Protection

Prevent WordPress plugins from placing PHP cookies without consent management.

Flexible Tracking Control

Give users the ability to block or allow third-party services like Facebook, Google Maps, and Twitter.

1.0.8

  • Updated tested up to
  • Dropped loading of translations, and loading of plugin_data, to prevent translation loading notices by WordPress 6.7, props @mujuonly
  • Dropped obsolete function wp_has_cookie_info, props @szepeviktor

1.0.7

  • Tested up to

1.0.7

  • Tested up to

1.0.6

  • Tested up to

1.0.5

  • tested up to

1.0.4

  • Improvement: only fire on change event if an actual change was detected on the consent.

1.0.3

  • Fix: wp_has_consent function contained a condition which caused it to always return true on serverside optin consent checks.

1.0.2

  • Fix $collected_personal_data documentation, as $is_personal_data was deprecated (props @jazzsequence, https://github.com/rlankhorst/wp-consent-level-api/issues/54)
  • Fix the docblock so it reflects the actual value returned (props @jazzsequence, https://github.com/rlankhorst/wp-consent-level-api/issues/52)
  • Styling changes to site health
  • Code structure changes
  • Removed is_personal_data property, as it’s implicitly contained in the personaldata property
  • Made cookie prefix filterable props @jazzsequence

1.0.1

  • Cookiebot added as existing integration
  • Some small improvements to comply with WordPress coding styles

1.0.0

  • changed consent_api_setcookie into consent_api_set_cookie for naming consistency with the getcookie method
  • added prefix in javascript set and get methods, to be compatible with PHP cookies, props @phpgeek
  • removed duplicate statistics category, props @phpgeek

Great Support Team

By brightvesseldev on September 25, 2024

Louis was great helping me with an issue. Plugin works great and highly recommend!

Try other plugins too!

ACF to REST API

Exposes Advanced Custom Fields Endpoints in the WordPress REST API

Try Demo More Details

WPGraphQL Blocks

Get gutenberg blocks as JSON through wp-graphql

Try Demo More Details

Restricted Site Access

Limit access to visitors who are logged in or allowed by IP addresses. Includes many options for handling blocked visitors.

Try Demo More Details
Author Site Author Site

Try WP Consent API With InstaWP

Contact Sales

Reach out to us to explore how InstaWP can benefit your business.