WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: wp-consent-api (Used by 53,092 domains)

WP Consent API

πŸ‘€ Rogier Lankhorst πŸ“¦ v2.0.1 πŸ”— Plugin Homepage

WP Consent API is a plugin that standardizes the communication of accepted consent categories between plugins. It requires a cookie banner plugin and, at least, one other plugin that supports the WP Consent API.

With this plugin, all supporting plugins can use the same set of methods to read and register the current consent category, allowing consent management plugins and other plugins to work together, improving compliance with privacy laws.

WARNING: the plugin itself will not handle consent. It will show you how many plugins you have without Consent API support and will improve compliance on your site by ensuring smooth communication between cookie banner plugins and plugins that set cookies or track user data.

What problem does this plugin solve?

Currently, it is possible for a consent management plugin to block third-party services like Facebook, Google Maps, Twitter, etc. But if a WordPress plugin places a PHP cookie, a consent management plugin cannot prevent this.

Secondly, some plugins integrate the tracking code on the clientside in javascript files that, when blocked, break the site.

Or, if such a plugin’s javascript is minified, causing the URL to be unrecognizable and won’t get detected by an automatic blocking script.

Lastly, the blocking approach requires a list of all types of URL’s that tracks data. A generic API where plugins adhere to can greatly
facilitate a webmaster in getting a site compliant.

Does usage of this API prevent third-party services from tracking user data?

Primary this API is aimed at compliant first-party cookies or tracking by WordPress plugins. If such a plugin triggers, for example, Facebook,
usage of this API will be of help. If a user embeds a Facebook iframe, a blocking tool is needed that initially disables the iframe and or scripts.

Third-party scripts have to blocked by blocking functionality in a consent management plugin. To do this in core would be to intrusive, and is also not applicable to all users: only users with visitors from opt-in regions such as the European Union require such a feature. Such a feature also has a risk of breaking things. Additionally, blocking these and showing a nice placeholder requires even more sophisticated code, all of which should in my opinion not be part of WordPress core, for the same reasons.

How does it work?

There are two indicators that together tell if consent is given for a specific consent category, e.g., β€œmarketing”:
1) the region based consent_type, which
can be opt-in, opt-out, or other possible consent_types;
2) and the visitor’s choice: not set, allow, or deny.

The consent_type is a function that wraps a filter, β€œwp_get_consent_type”. If there’s no consent management plugin to set it, it will return false. This will cause all consent categories to return true, allowing cookies to be set on all categories.

If opt-in is set using this filter, a category will only return true if the value of the visitor’s choice is β€œallow”.

If the region based consent_type is opt-out, it will return true if the visitor’s choice is not set or is β€œallow”.

Clientside, a consent management plugin can dynamically manipulate the consent type and set several cookie categories.

A plugin can use a hook to listen for changes or check the value of a given category.

Categories and most other stuff can be extended with a filter.

Existing integrations

Categorized, and sorted alphabetically

Example plugin

  • Example plugin. The plugin basically consists of a shortcode, with a div that shows a tracking or not tracking message. No actual tracking is done πŸ™‚

Consent Management Providers

Consent Requiring Plugins

Demo site

wpconsentapi.org
Below are the plugins used to set up the demo site:

javascript, consent management plugin

//set consent type
window.wp_consent_type = 'optin'

//dispatch event when consent type is defined. This is useful if the region is detected server side, so the consent type is defined later during the pageload
let event = new CustomEvent('wp_consent_type_defined');
document.dispatchEvent( event );


//consent management plugin sets cookie when consent category value changes
wp_set_consent('marketing', 'allow');

javascript, tracking plugin

//listen to consent change event
document.addEventListener("wp_listen_for_consent_change", function (e) {
  var changedConsentCategory = e.detail;
  for (var key in changedConsentCategory) {
    if (changedConsentCategory.hasOwnProperty(key)) {
      if (key === 'marketing' && changedConsentCategory[key] === 'allow') {
        console.log("just given consent, track user")
      }
    }
  }
});

//basic implementation of consent check:
if (wp_has_consent('marketing')){
  activateMarketing();
  console.log("set marketing stuff now!");
} else {
  console.log("No marketing stuff please!");
}

PHP

//declare compliance with consent level API
$plugin = plugin_basename( __FILE__ );
add_filter( "wp_consent_api_registered_{$plugin}", '__return_true' );

/**
* Example how a plugin can register cookies with the consent API
 * These cookies can then be shown on the front-end, to the user, with wp_get_cookie_info()
 */

function my_wordpress_register_cookies(){
    if ( function_exists( 'wp_add_cookie_info' ) ) {
        wp_add_cookie_info( 'AMP_token', 'AMP', 'marketing', __( 'Session' ), __( 'Store a unique User ID.' ) );
    }
}
add_action('plugins_loaded', 'my_wordpress_register_cookies');


if (wp_has_consent('marketing')){
//do marketing stuff
}

Service-level consent

In addition to category-based consent, the API supports service-level consent control. This allows consent management plugins to grant or deny consent for specific services (like β€˜google-analytics’ or β€˜facebook-pixel’) independently from their category. When checking service consent with wp_has_service_consent(), the API first checks if explicit consent exists for that service. If no explicit consent is set, it falls back to the consent status of the service’s category. This enables fine-grained control: a user might accept statistics cookies in general, but explicitly deny a specific analytics service.

Service consent can be checked and set both server-side (PHP) and client-side (JavaScript):

PHP:

//check if a specific service has consent
if ( wp_has_service_consent( 'google-analytics' ) ) {
    //activate google analytics
}

//check if a service is explicitly denied
if ( wp_is_service_denied( 'facebook-pixel' ) ) {
    //service was explicitly denied by user
}

//set service consent
wp_set_service_consent( 'google-analytics', true ); //grant consent
wp_set_service_consent( 'facebook-pixel', false ); //deny consent

//listen for service consent changes
add_action( 'wp_consent_service_changed', function( $service, $consented ) {
    error_log( "Service {$service} consent changed to: " . ( $consented ? 'granted' : 'denied' ) );
}, 10, 2 );

JavaScript:

//check service consent
if ( wp_has_service_consent( 'youtube' ) ) {
    //activate tracking
}

//check if explicitly denied
if ( wp_is_service_denied( 'facebook-pixel' ) ) {
    //service denied
}

//set service consent
wp_set_service_consent( 'youtube', true );

//listen for service consent changes
document.addEventListener( 'wp_consent_api_status_change_service', function( e ) {
    console.log( 'Service: ' + e.detail.service + ', consented: ' + e.detail.value );
});

Any code suggestions? We’re on GitHub as well!

DomainExposuresHeadersLast Checked
g*z*t*e*0.com βœ… D 2026-06-05 20:51:02
m*r*i*l*-*t*e*n*.com (WP 7.0) βœ… F 2026-06-05 20:47:14
t*e*y*i*a*m*m.com βœ… A 2026-06-05 20:46:56
t*e*y*i*a*d*d.com βœ… A 2026-06-05 20:46:56
a*u*r*n*.hu (WP 6.4.5) ⚠️ F 2026-06-05 20:43:08
a*o*b*a*t*s.c*m.br (WP 7.0) πŸ‘€ F 2026-06-05 20:39:51
4*d*r*i*i*g.o*g.au πŸ‘€ F 2026-06-05 20:38:41
u*-*y*r*c*i*.l*x*l.work πŸ‘€ F 2026-06-05 20:37:28
m*r*d*t*d*b*r*a*.com (WP 6.7.5) βœ… A 2026-06-05 20:37:24
a*d*e*v*s*n*o*-*9*v*h*w*h.l*v*-*e*s*t*.com (WP 6.9.4) πŸ‘€ F 2026-06-05 20:37:19
d*e*g*n*e*s*r*a*u*a*t*r.de (WP 7.0) βœ… F 2026-06-05 20:36:50
a*i*n*a*i*u*a.com (WP 7.0) βœ… F 2026-06-05 20:36:14
p*a*e*a*i*.sk βœ… F 2026-06-05 20:35:57
v*x*i.nl (WP 7.0) πŸ‘€ F 2026-06-05 20:34:10
g*z*p*.com βœ… F 2026-06-05 20:33:04
m*r*o*t*i*h*f*.com βœ… F 2026-06-05 20:32:45
m*r*o*g*o*p.com (WP 6.7.5) βœ… C 2026-06-05 20:32:45
m*r*o*e*.com (WP 6.7.5) βœ… C 2026-06-05 20:32:45
m*r*o*.com (WP 6.7.5) βœ… C 2026-06-05 20:32:44
m*r*i*n.com (WP 7.0) βœ… D 2026-06-05 20:32:44
a*i*n*a*i*a*h*l*.com (WP 7.0) πŸ‘€ F 2026-06-05 20:31:45
a*i*n*a*r*n*.com (WP 6.5.8) βœ… F 2026-06-05 20:31:44
c*a*t*f*x.ie βœ… A 2026-06-05 20:28:39
f*o*t*e*k*t*d*o*.com βœ… F 2026-06-05 20:27:31
s*a*p*h*o*e*s*a*g*.c*.uk βœ… F 2026-06-05 20:27:04
c*m*u*i*y*u*d*d.com βœ… C 2026-06-05 20:26:10
f*o*t*i*e*i*i*a*.com (WP 7.0) πŸ‘€ F 2026-06-05 20:22:37
f*o*t*q*i*y*e*e*r*h.com βœ… D 2026-06-05 20:22:37
p*k*a*z.com (WP 7.0) πŸ‘€ F 2026-06-05 20:15:49
t*e*s*i*t*a*y.com (WP 7.0) πŸ‘€ C 2026-06-05 20:12:58
b*w*a*d*.c*.uk πŸ‘€ F 2026-06-05 20:08:30
m*r*s*c*r*t*.com βœ… B 2026-06-05 20:04:29
m*l*n*i*c.com πŸ‘€ F 2026-06-05 20:02:15
a*g*l*m*n*.com βœ… F 2026-06-05 20:01:55
a*g*r*i.com (WP 7.0) βœ… F 2026-06-05 19:57:30
g*v*o*f*t.com (WP 6.6.5) πŸ‘€ F 2026-06-05 19:56:42
f*o*t*t*p*.com βœ… F 2026-06-05 19:56:10
g*a*h*c*e*r.nl (WP 7.0) πŸ‘€ F 2026-06-05 19:54:12
a*f*i*h*s*2*.com (WP 7.0) βœ… F 2026-06-05 19:53:13
m*j*t*y*.com βœ… F 2026-06-05 19:50:21
e*v*s*r*u*h.to βœ… B 2026-06-05 19:49:42
b*w*e*m*t*r*r*u*.c*.uk βœ… F 2026-06-05 19:49:12
f*o*t*o*.com πŸ‘€ F 2026-06-05 19:48:40
a*e*p*d*t*o*s.com βœ… D 2026-06-05 19:47:07
m*j*t*l*b*d*g*i*a.com (WP 6.9.4) βœ… F 2026-06-05 19:44:05
i*e*4*r*.com (WP 6.8.1) βœ… F 2026-06-05 19:42:13
t*e*r*u*n*r*.com βœ… F 2026-06-05 19:41:18
m*i*u*y.com βœ… D 2026-06-05 19:37:12
t*e*r*p*c*l*r*n*s.com (WP 7.0) πŸ‘€ F 2026-06-05 19:36:33
a*g*l*t*.es (WP 6.9.4) πŸ‘€ F 2026-06-05 19:33:42
m*r*n*a*p*r*n*r*.com (WP 7.0) βœ… F 2026-06-05 19:28:28
f*o*t*n*a*b*r*-*s*c*o*o*u*.com (WP 7.0) πŸ‘€ F 2026-06-05 19:15:33
m*r*m*r*a*a*o*a.com βœ… D 2026-06-05 19:14:03
e*-*e*h*i*.de (WP 7.0) πŸ‘€ F 2026-06-05 19:07:33
t*e*r*n*b*l*.com (WP 7.0) βœ… F 2026-06-05 19:06:00
m*r*l*e*-*b*g*d*s.com (WP 7.0) βœ… F 2026-06-05 19:02:49
b*o*.e*e*n*l*d.com (WP 7.0) πŸ‘€ F 2026-06-05 18:59:18
a*c*i*i*a*t*i*l*.com βœ… F 2026-06-05 18:56:13
t*e*r*e*o*s*o*t*e*e*c*.com βœ… F 2026-06-05 18:55:48
r*u*d*k*c*b*x*n*.com πŸ‘€ F 2026-06-05 18:51:42
a*b*b.com βœ… D 2026-06-05 18:49:44
m*z*x.sk (WP 6.9.4) πŸ‘€ F 2026-06-05 18:45:12
a*b*i*d.com (WP 7.0) βœ… F 2026-06-05 18:44:44
a*e*c*a*a.c*m.br (WP 7.0) βœ… F 2026-06-05 18:42:21
m*r*i*o*o*i*a*u*n.com (WP 7.0) βœ… F 2026-06-05 18:35:50
m*r*i*o*i*.com βœ… D 2026-06-05 18:29:02
g*r*e*g*l*x*e.com πŸ‘€ F 2026-06-05 18:28:48
m*k*f*n.ai πŸ‘€ C 2026-06-05 18:27:43
d*x*.london πŸ‘€ F 2026-06-05 18:23:16
g*r*e*e*s*o*c*.com (WP 7.0) βœ… F 2026-06-05 18:18:55
a*t*o*v*n*u*a.net (WP 7.0) βœ… F 2026-06-05 18:16:22
r*p*d*l*b*l.com (WP 7.0) βœ… F 2026-06-05 18:13:53
b*n*e*i*y*n.no (WP 7.0) βœ… D 2026-06-05 18:11:31
t*k*l*n*.no (WP 7.0) βœ… F 2026-06-05 18:11:30
a*a*i*l*c.com (WP 6.9.4) πŸ‘€ F 2026-06-05 18:09:06
f*o*t*c*e*t*v*.com πŸ‘€ F 2026-06-05 18:04:05
g*r*e*c*t*w*t*r*a*k.com (WP 6.8.2) βœ… F 2026-06-05 18:03:51
t*e*m*l*n*z*b*a.com πŸ‘€ F 2026-06-05 18:02:57
f*o*t*e*a*b*o*.com βœ… D 2026-06-05 17:56:17
t*e*m*r*m*n*.com βœ… B 2026-06-05 17:50:15
t*m*s*t*.d*f*e*a*l*n*i*.ca (WP 7.0) βœ… F 2026-06-05 17:48:44
m*t*a*i*e*l*n*e*.fr βœ… F 2026-06-05 17:47:48
t*e*m*r*e*g*r*g*.com βœ… D 2026-06-05 17:44:43
t*e*m*r*a*g*t.com βœ… F 2026-06-05 17:39:13
p*p*u*.c*m.ua βœ… D 2026-06-05 17:39:09
m*r*g*i*i*a*i*n.com βœ… F 2026-06-05 17:37:05
m*d*r*i*a*.com βœ… C 2026-06-05 17:35:02
c*m*i*g*m*r*m*r.com (WP 6.9.4) βœ… F 2026-06-05 17:34:25
r*.d*m*n*c*n*o*e*r*.com (WP 6.9.4) πŸ‘€ D 2026-06-05 17:30:03
g*r*e*l*g*m*.com βœ… F 2026-06-05 17:27:15
p*e*r*d.f*n*t*e*e*r.fr (WP 6.8.5) βœ… F 2026-06-05 17:24:55
h*s*o*r*-*u*t*t*u*g*.fr πŸ‘€ F 2026-06-05 17:24:25
c*n*i*r*e*a*a*i*e.c*m.mx πŸ‘€ D 2026-06-05 17:21:38
g*r*a*u*d*e*.com (WP 7.0) βœ… F 2026-06-05 17:19:42
m*r*d*r*e*a*a*i*.com βœ… F 2026-06-05 17:12:00
m*r*d*r*e*o*n.com (WP 6.6.5) πŸ”“ πŸ‘€ F 2026-06-05 17:12:00
m*r*d*r*e*a*t*l*e*o.com βœ… F 2026-06-05 17:12:00
a*a*e*y.z*l*.com (WP 7.0) πŸ‘€ F 2026-06-05 17:11:02
n*t*y*i*.com (WP 7.0) πŸ‘€ F 2026-06-05 17:07:05
d*v*d*o*f*p*i*g.fr (WP 7.0) βœ… F 2026-06-05 17:06:29

Top 50 Plugins

Plugin Count
elementor 1,868,053
contact-form-7 1,839,138
elementor-pro 1,086,956
woocommerce 843,096
revslider 638,354
jetpack 478,746
js_composer 447,519
wp-rocket 347,732
essential-addons-for-elementor-lite 308,278
gravityforms 300,257
complianz-gdpr 269,093
cookie-law-info 241,775
instagram-feed 235,701
google-site-kit 229,472
sitepress-multilingual-cms 229,144
google-analytics-for-wordpress 220,437
elementskit-lite 217,876
header-footer-elementor 217,110
bluehost-wordpress-plugin 192,383
gutenberg 166,413
gutenberg-core 165,241
cookie-notice 160,147
litespeed-cache 140,996
the-events-calendar 137,971
wpforms-lite 133,159
gtranslate 132,650
astra-sites 122,378
popup-maker 119,986
tablepress 115,666
woocommerce-payments 115,555
coblocks 103,081
honeypot 101,592
astra-addon 98,381
duracelltomi-google-tag-manager 97,229
wp-smushit 96,743
all-in-one-seo-pack 96,258
LayerSlider 94,649
bb-plugin 92,877
megamenu 90,546
premium-addons-for-elementor 89,861
akismet 88,120
mailchimp-for-wp 86,426
cleantalk-spam-protect 85,881
woocommerce-gateway-stripe 85,506
ml-slider 84,529
borlabs-cookie 83,528
wp-pagenavi 82,783
fusion-builder 82,411
ewww-image-optimizer 81,669
smart-slider-3 80,822

Top 50 Themes

Theme Count
hello-elementor 638,947
Divi 528,350
astra 437,220
flatsome 147,608
generatepress 130,535
Avada 128,533
pub 113,783
twentytwentyfour 87,839
oceanwp 86,469
kadence 82,000
sydney 75,827
enfold 74,519
salient 68,746
twentyseventeen 58,508
h4 58,354
bb-theme 56,485
betheme 53,931
blocksy 53,040
cocoon-master 52,732
dt-the7 47,785
twentytwentyfive 46,005
neve 41,043
Avada-Child-Theme 38,823
woodmart 34,431
gox 34,352
bridge 33,904
twentytwentyone 33,206
lightning 32,337
twentytwenty 31,198
swell 29,067
voxel 27,638
Impreza 27,599
bricks 26,946
twentytwentythree 24,833
Newspaper 24,711
sinatra 24,616
kubio 22,257
twentytwentytwo 20,450
uncode 19,869
epik-redesign 19,288
twentysixteen 19,161
storefront 18,527
pro 18,211
Total 15,275
extendable 15,037
yith-wonder 14,135
hello-theme-child-master 13,902
yootheme 13,495
themify-ultra 13,469
hestia 13,422