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

Plugin: wp-consent-api (Used by 50,474 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
u*s*o*o*t*o*.c*m.br (WP 7.0) πŸ‘€ F 2026-06-19 12:25:13
m*l*n*e*e*t*.de (WP 7.0) πŸ‘€ F 2026-06-19 12:14:16
b*r*j*m*b*l*s.com (WP 7.0) βœ… F 2026-06-19 12:07:04
g*o*a*i*n*r*i*i*a*i*n*.it (WP 7.0) πŸ‘€ B 2026-06-19 12:05:44
p*n*c*o*s*i*.c*m.br βœ… F 2026-06-19 11:54:30
g*l*z*o.gr βœ… F 2026-06-19 11:19:37
m*t*r*r*i*e*v*r*u*r*j*n*s*a.nl (WP 7.0) πŸ‘€ F 2026-06-19 11:11:35
b*b*o*n*k.cz πŸ”“ πŸ‘€ F 2026-06-19 11:10:24
p*o*e*t*n*t*d.c*m.au (WP 7.0) βœ… F 2026-06-19 11:02:35
f*c*.org βœ… C 2026-06-19 10:53:55
e*c*l*o*a*u*o.c*m.br (WP 7.0) βœ… F 2026-06-19 10:44:24
p*p*y*h*p*e*.no (WP 7.0) βœ… F 2026-06-19 10:25:49
n*t*i*e*.cloud πŸ‘€ F 2026-06-19 10:21:43
s*a*t*a*t*n.plus βœ… D 2026-06-19 10:12:01
o*g*l*w*n*o*s*a*i*t*t*k.pl πŸ‘€ F 2026-06-19 10:04:59
t*r*v*r*a*t*c*m*a*y.com πŸ‘€ F 2026-06-19 10:02:56
p*a*i*-*e*g*r.de (WP 7.0) πŸ‘€ F 2026-06-19 10:01:38
k*e*m*v*n*.c*m.au (WP 6.9.4) πŸ”“ πŸ‘€ F 2026-06-19 09:58:12
a*e*a*d*r*t*m*e*d*s*g*.c*.uk (WP 7.0) πŸ‘€ F 2026-06-19 09:54:18
k*l*u*a*o*s*k*d.pl (WP 7.0) πŸ‘€ F 2026-06-19 09:42:15
n*t*o*k*e*a*r*.ca (WP 7.0) βœ… D 2026-06-19 09:37:48
l*o*c*p*t*l*.net βœ… C 2026-06-19 09:18:33
b*a*-*h.de (WP 6.9.4) βœ… F 2026-06-19 09:11:33
s*a*t*s*t*l*e.dk βœ… F 2026-06-19 09:08:33
p*n*a*i*r*c*m*n*.dk (WP 7.0) πŸ‘€ F 2026-06-19 09:07:51
m*x*t*t*u.c*m.br βœ… D 2026-06-19 08:49:29
s*m*e*f*e*s*l.dk πŸ‘€ F 2026-06-19 07:09:51
w*r*e*b*j*e*s.nl (WP 6.9.4) βœ… F 2026-06-19 07:01:58
r*v*.pl βœ… F 2026-06-19 06:57:11
l*p*o*a.org πŸ”“ πŸ‘€ F 2026-06-19 06:57:11
m*d*c*l*e*.c*m.br πŸ‘€ D 2026-06-19 06:39:27
w*l*-*i*.nl (WP 7.0) πŸ‘€ F 2026-06-19 06:29:43
g*m*s*e*i*l*s*.nl βœ… F 2026-06-19 06:27:32
c*o*n*t.de (WP 7.0) πŸ”“ πŸ‘€ F 2026-06-19 06:24:26
h*l*e*w*n*e*g*e*t*n.de βœ… B 2026-06-19 06:16:58
m*r*e*t*l.pl βœ… F 2026-06-19 05:51:43
t*e*e*l*r*i*i*g.o*g.au (WP 7.0) βœ… F 2026-06-19 05:48:04
s*a*i*a.c*.uk (WP 6.9.4) βœ… D 2026-06-19 05:47:04
g*a*i*m*c*o.hu (WP 6.8.5) βœ… F 2026-06-19 04:42:34
d*e*t*r.no βœ… D 2026-06-19 04:31:20
d*v*o*s*r*a*.nl (WP 7.0) πŸ‘€ F 2026-06-19 04:26:27
b*o*k.shop (WP 7.0) βœ… F 2026-06-19 04:11:20
p*n*v*m*s*e*.hu πŸ‘€ F 2026-06-19 04:04:22
p*z*c*y*a*e.net (WP 7.0) βœ… F 2026-06-19 04:01:06
l*n*h*n*e*-*t*e.de βœ… F 2026-06-19 03:50:25
h*i*e*a*g*r.de (WP 6.9.4) πŸ‘€ F 2026-06-19 03:50:25
x*e.cz βœ… F 2026-06-19 03:46:51
r*g*r*e*a*t*.c*.uk (WP 6.9.4) βœ… F 2026-06-19 03:41:36
s*v*u*a*h.de (WP 7.0) πŸ‘€ F 2026-06-19 03:38:11
j*k*a*i*-*h*i*a*s*g*.de (WP 7.0) πŸ‘€ F 2026-06-19 03:32:18
s*r*p.com πŸ‘€ F 2026-06-19 03:20:00
l*g*c*m*i*e*r*.c*m.br (WP 6.9.4) πŸ‘€ F 2026-06-19 02:37:25
m*o*k*.pl (WP 7.0) πŸ‘€ F 2026-06-19 02:31:38
a*v*s*e*i*l*s*.nl (WP 6.8.3) βœ… D 2026-06-19 02:29:48
f*n*a*i*n*a*u*l*.o*g.ar (WP 6.8.5) βœ… F 2026-06-19 02:20:50
c*o*s*i*b*l*a*d.se (WP 7.0) βœ… F 2026-06-19 01:42:50
b*r*a*d.hu πŸ”“ D 2026-06-19 01:30:21
l*s*-*i*e*t*r*.com πŸ‘€ C 2026-06-19 01:16:18
b*c*o*t*a*k*c.com βœ… C 2026-06-19 00:42:16
t*i*n.se (WP 7.0) πŸ‘€ F 2026-06-19 00:18:52
l*k*s*a*i*f*.hu (WP 7.0) βœ… D 2026-06-18 22:53:34
g*o*a.hu (WP 7.0) πŸ‘€ F 2026-06-18 22:53:14
t*s*t*t*t*k*r*t.hu βœ… F 2026-06-18 22:21:11
h*o*t*s*s*o*e.com βœ… F 2026-06-18 21:55:11
w*d*g*o*.com (WP 6.9.4) βœ… F 2026-06-18 21:41:30
c*e*h*p*e*s.cz (WP 6.9.1) βœ… C 2026-06-18 21:15:49
s*m*e*d*e*m*.c*m.br (WP 7.0) πŸ‘€ F 2026-06-18 20:28:08
s*a*i*g*u*c*u*c*l*.c*.uk βœ… F 2026-06-18 20:19:03
n*r*k*s.gr βœ… F 2026-06-18 20:04:26
c*n*r*l*i*g*i.hu (WP 6.9) βœ… F 2026-06-18 19:52:20
r*d*o*o*i*-*t*l*n*e*.de πŸ‘€ F 2026-06-18 19:36:22
b*n*a*s*p*r*.com (WP 6.7.5) πŸ‘€ F 2026-06-18 19:27:14
d*v*r*l*n*v*.eu πŸ‘€ F 2026-06-18 19:26:08
h*c*z*i*s*e*o*p*a*.com (WP 7.0) πŸ‘€ F 2026-06-18 19:23:53
m*n*-*a*a*i*e.de (WP 7.0) βœ… D 2026-06-18 19:19:58
p*o*o*i*-*n*i*h*.nl (WP 6.9.4) βœ… D 2026-06-18 18:22:12
b*a*a*k*c*a.pl (WP 7.0) βœ… F 2026-06-18 18:13:17
p*y*a*n*-*o*y*o*i*k*.pl (WP 7.0) πŸ‘€ F 2026-06-18 18:10:31
s*n*h*e*p*m*d*e*.no βœ… F 2026-06-18 16:39:59
i*d*a*t*c*s*a*l*.com (WP 7.0) πŸ‘€ F 2026-06-18 16:38:57
k*o*i.net (WP 7.0) βœ… F 2026-06-18 16:34:33
m*j*o*.c*.uk βœ… F 2026-06-18 16:30:00
m*v*e*b*o*.com (WP 7.0) πŸ‘€ D 2026-06-18 16:27:05
g*w*.c*.uk (WP 7.0) βœ… F 2026-06-18 16:19:24
j*m*v*r*u*r.nl βœ… F 2026-06-18 16:11:48
c*a*e*e.o*g.br (WP 7.0) βœ… F 2026-06-18 15:52:56
c*m*i*g*a*t*c.com βœ… F 2026-06-18 15:30:19
c*l*i*p*-*e*o*a*i*n*v*c*y.fr βœ… F 2026-06-18 15:16:45
b*u*l*e*-*o*m*n*c*t*o*.fr πŸ‘€ F 2026-06-18 14:33:05
s*i*s*l*r.de βœ… F 2026-06-18 14:17:00
w*r*d*a*d*p*o*e*t.org (WP 7.0) βœ… C 2026-06-18 14:04:47
j*d*.o*.jp βœ… F 2026-06-18 13:17:34
i*k*r*i*c*n*i*e*.at (WP 7.0) βœ… F 2026-06-18 13:10:22
l*k*a*i*a.cz (WP 6.9.4) βœ… F 2026-06-18 12:59:51
a*s*.technology πŸ‘€ F 2026-06-18 12:36:50
e*l*n.org (WP 7.0) πŸ‘€ F 2026-06-18 12:11:49
s*i*s*a*c*.c*.uk βœ… F 2026-06-18 11:44:48
m*l*t*d*s*r*f*.no (WP 7.0) πŸ‘€ F 2026-06-18 11:38:22
t*i*o*t*e*p*r.nl (WP 7.0) βœ… F 2026-06-18 11:24:04
c*m*c*a*n*e*a*d.it (WP 6.3.2) ⚠️ πŸ‘€ F 2026-06-18 11:09:07

Top 50 Plugins

Plugin Count
elementor 1,744,327
contact-form-7 1,739,229
elementor-pro 1,027,788
woocommerce 797,925
revslider 605,663
jetpack 456,403
js_composer 420,900
wp-rocket 327,985
essential-addons-for-elementor-lite 264,002
complianz-gdpr 256,882
gravityforms 251,116
cookie-law-info 228,015
instagram-feed 225,059
google-site-kit 219,372
sitepress-multilingual-cms 209,712
google-analytics-for-wordpress 207,790
header-footer-elementor 206,578
bluehost-wordpress-plugin 185,580
elementskit-lite 181,214
gutenberg-core 161,365
gutenberg 159,852
cookie-notice 150,782
litespeed-cache 130,768
wpforms-lite 128,077
the-events-calendar 124,824
gtranslate 122,976
astra-sites 118,495
popup-maker 111,909
woocommerce-payments 110,959
tablepress 99,723
coblocks 99,183
honeypot 96,237
astra-addon 93,115
all-in-one-seo-pack 91,664
wp-smushit 91,020
LayerSlider 89,839
duracelltomi-google-tag-manager 89,212
bb-plugin 85,448
premium-addons-for-elementor 84,729
akismet 83,659
cleantalk-spam-protect 82,375
mailchimp-for-wp 82,191
woocommerce-gateway-stripe 79,841
megamenu 79,695
borlabs-cookie 79,524
ml-slider 78,664
fusion-builder 77,466
ewww-image-optimizer 75,442
formidable 75,398
smart-slider-3 75,144

Top 50 Themes

Theme Count
hello-elementor 606,398
Divi 501,867
astra 417,125
flatsome 125,696
Avada 121,657
generatepress 115,745
pub 111,465
oceanwp 82,272
kadence 78,633
enfold 70,932
salient 65,007
h4 55,474
twentyseventeen 54,842
twentytwentyfour 52,644
bb-theme 51,719
betheme 51,552
cocoon-master 50,876
blocksy 49,730
dt-the7 45,261
twentytwentyfive 43,293
neve 38,751
Avada-Child-Theme 36,699
gox 34,496
woodmart 32,986
bridge 32,224
twentytwentyone 31,352
lightning 29,583
twentytwenty 28,979
swell 27,861
Impreza 26,096
bricks 25,386
twentytwentythree 23,372
Newspaper 23,298
twentytwentytwo 19,595
epik-redesign 19,302
uncode 18,515
twentysixteen 17,588
pro 17,119
sydney 16,624
storefront 16,445
extendable 14,924
Total 14,496
yith-wonder 13,365
hello-theme-child-master 13,309
factory-templates-4 13,223
themify-ultra 12,876
yootheme 12,638
hestia 12,610
twentynineteen 11,800
porto 11,713