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

Plugin: cookie-connector-for-themer (Used by 12 domains)

Cookie Connector For Themer

👤 badabingbreda 📦 v1.3.1

Cookie Connector for (Beaver) Themer

Plugin description

Cookie Connector for Beaver Themer is an unofficial addon-plugin for the popular Beaver Themer plugin. It allows you to read cookie-values using the Beaver Themer Connector and use Conditional Logic to hide/show seperate nodes (modules, columns and/or rows) using cookie values.

Cookie Connector also allows you to create cookies using an AJAX call. For security measures you will need to write the AJAX yourself, but an example file on how to do that can be found here, in the example folder:

https://github.com/badabingbreda/cookie-connector-for-themer/

Using the Cookie Connector
You can display the Cookie Connector wherever you’d normally insert it as a string, using either the connect or insert button.

Using the Conditional Logic filter
Because cookies have a certain validity, it can’t return a value when the cookie isn’t there or has become invalid. The Conditional Logic filter has an extra parameter to set a default value for whenever it doesn’t return anything. Setting this parameter return that value whenever it doesn’t exist.

Writing cookies values
Cookies are written before any headers are written to the visitor’s browser. The downside to that is that cookies can only be read when the visitor’s sends a request, since they are sent over WITH the request. This means that you can’t write a cookie’s value and immediately read that cookies new value, within a single run of a page-call.

To work around that, cookies can be written using an AJAX call.
“Cookie Connector for Themer” enqueues a script that registers the cookieConnector object, which handles the security and sending of requests.
Let’s consider the following html-code that is used in a HTML module:

Set cookie value

Unset cookie value

The first parameter is the actionname that is going to be called in the PHP script, so in this example (see below) the part after ‘wp_ajax_’ and ‘wp_ajax_nopriv_’.
You can also add an extra, optional, third parameter debug that will add a console.log dump of the response, should you need to know what’s being answered:

Set cookie value

Unset cookie value

Adding the PHP code to create/change/delete the cookie
Clicking the link wil trigger an AJAX call that will set a cookie on the visitor’s device, if their browser allows it.

On the server-side, you will need to add one or two ajax callbacks, depending if the call can be made without being logged in.

 false, 'error' => '402', 'message' => 'cookie not set, no value given. ( cv )' ) );
        }

        // check action parameter
        // UNSET mycookie
        if ( 'unsetmycookie' == $_GET['action'] ) {
            setcookie( $cookie_name , 'unset value' , time() - 1 , COOKIEPATH, COOKIE_DOMAIN , isset($_SERVER["HTTPS"]) );
            wp_send_json( array( 'success' => true, 'message' => "Done unsetting cookie '{$cookie_name}'." ) );
        } else if ( 'setmycookie' == $_GET['action'] ) {
            setcookie( $cookie_name , $cookie_value , time() + $cookie_valid , COOKIEPATH, COOKIE_DOMAIN , isset($_SERVER["HTTPS"]), true );
            wp_send_json( array( 'success' => true, 'message' => "Done setting cookie '{$cookie_name}' to value '{$cookie_value}' with validity $cookie_valid seconds." ) );

        }
        wp_die();
    }

It is advised to use wp_send_json with a ‘success’ parameter (either true or false) so that you check it in your javascript and add actions after sending the cookieConnector() command, for instance a reload of the page or forwarding to an url that you received from the server based on the click.
For instance, the javascript below will try to create the cookie. When successful it will display an alert on the browser and reload the page after 1.5 seconds.


Special thanks
Thanks to 10UP for creating this github action for easy deployment. https://github.com/marketplace/actions/wordpress-plugin-deploy

version history

1.3.1
Forgot to update readme.md (this file). Small fix for isset because it’s not the value that we want (could be falsy) but return if the cookie is set.

1.3.0
Rewrite of plugin using Autoloader. Fixed isset error.

1.2.0

Removed admin_notice so that plugin can be used without Beaver Themer and Beaver Builder too (scripts), for ajax calls.

1.1.0

Updated the version because it works on WP 5.4 too

1.0.1

Updated example code

1.0.0

Initial release (January 18th, 2019)

DomainExposuresHeadersLast Checked
d*b*t*a*d*o*b*s*n*s*.com B 2026-07-18 23:45:58
m*e*a*l*a*c*d*r*c*b*n*f*t*.com C 2026-07-18 11:15:17
c*i*i*i*s*t*s.com (WP 6.9.4) 👤 F 2026-07-12 00:20:40
b*z*p*e*a*d.com B 2026-07-11 08:37:15
a*l*a*c*d*r*c*b*n*f*t*.com C 2026-07-10 11:34:02
a*l*a*c*c*l*e*e*u*d*.com C 2026-07-10 11:30:58
n*p*c*r*o*a*e*r*d*t*a*d.com B 2026-07-09 09:26:42
c*m*a*y*r*p*i*.com B 2026-07-03 20:27:10
p*e*a*d*a*d*f*r*u*i*e*s.com B 2026-05-31 00:42:42
p*e*a*d*a*d*o*b*s*n*s*.com B 2026-05-31 00:42:41
p*x*a*d.com B 2026-05-27 02:29:00
b*s*n*s*p*e*a*d*i*a.com B 2026-05-25 23:18:31

Top 50 Plugins

Plugin Count
elementor 1,792,936
contact-form-7 1,780,342
elementor-pro 1,061,250
woocommerce 822,396
revslider 618,455
jetpack 463,877
js_composer 427,777
wp-rocket 342,825
essential-addons-for-elementor-lite 269,321
complianz-gdpr 262,898
gravityforms 258,743
cookie-law-info 233,148
google-site-kit 231,811
instagram-feed 228,586
sitepress-multilingual-cms 214,486
header-footer-elementor 210,976
google-analytics-for-wordpress 209,627
bluehost-wordpress-plugin 193,604
elementskit-lite 184,176
gutenberg 167,565
cookie-notice 152,783
litespeed-cache 141,713
gutenberg-core 136,669
wpforms-lite 127,599
gtranslate 127,443
the-events-calendar 124,635
astra-sites 116,766
popup-maker 112,098
woocommerce-payments 111,669
tablepress 102,820
honeypot 98,927
astra-addon 95,327
coblocks 93,119
wp-smushit 92,381
duracelltomi-google-tag-manager 91,729
all-in-one-seo-pack 91,161
layerslider 91,115
bb-plugin 86,988
premium-addons-for-elementor 86,058
akismet 85,929
cleantalk-spam-protect 83,989
mailchimp-for-wp 83,396
ml-slider 83,095
megamenu 81,570
woocommerce-gateway-stripe 80,793
fusion-builder 78,562
ewww-image-optimizer 77,492
smart-slider-3 77,443
jet-engine 77,324
wp-pagenavi 77,305

Top 50 Themes

Theme Count
hello-elementor 626,250
Divi 505,341
astra 422,701
flatsome 136,320
Avada 123,324
generatepress 116,647
pub 94,913
oceanwp 82,380
kadence 80,108
enfold 70,672
salient 66,236
twentyseventeen 55,134
twentytwentyfour 53,104
betheme 52,948
bb-theme 52,827
blocksy 51,629
cocoon-master 50,331
h4 47,190
dt-the7 46,094
twentytwentyfive 44,741
woodmart 39,726
neve 38,906
Avada-Child-Theme 37,440
gox 36,226
bridge 32,152
twentytwentyone 30,858
lightning 30,280
twentytwenty 29,217
swell 28,457
bricks 26,519
Impreza 26,512
Newspaper 24,523
twentytwentythree 22,584
epik-redesign 19,449
twentytwentytwo 19,210
uncode 18,860
twentysixteen 17,792
pro 17,646
sydney 16,850
storefront 16,566
Total 14,731
hello-theme-child-master 14,090
extendable 13,782
factory-templates-4 13,749
themify-ultra 13,152
hestia 12,822
yith-wonder 12,820
yootheme 12,796
porto 12,132
twentynineteen 11,791