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

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

Security snapshot

Across the 12 cookie-connector-for-themer sites we've scanned, compared to the all-WordPress average.

Grade A 0% Grade B 67% Grade C 25% Grade D 0% Grade F 8%
Fail the header check (F)8%vs 82.6% avg
Leak usernames8%vs 38.5% avg
Expose a sensitive file0%vs 1.8% avg
Use HTTPS100%vs 96.1% avg

Cookie Connector For Themer

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
c*i*i*i*s*t*s.com (WP 6.9.7) F Aug 31, 2026
b*z*p*e*a*d.com B Aug 30, 2026
a*l*a*c*d*r*c*b*n*f*t*.com C Aug 29, 2026
a*l*a*c*c*l*e*e*u*d*.com C Aug 29, 2026
n*p*c*r*o*a*e*r*d*t*a*d.com B Aug 27, 2026
c*m*a*y*r*p*i*.com B Aug 20, 2026
p*e*a*d*a*d*f*r*u*i*e*s.com B Jul 28, 2026
p*e*a*d*a*d*o*b*s*n*s*.com B Jul 28, 2026
p*x*a*d.com B Jul 23, 2026
b*s*n*s*p*e*a*d*i*a.com B Jul 22, 2026
d*b*t*a*d*o*b*s*n*s*.com B Jul 18, 2026
m*e*a*l*a*c*d*r*c*b*n*f*t*.com C Jul 18, 2026

Top 50 Plugins

Plugin Count
elementor 1,727,226
contact-form-7 1,719,352
elementor-pro 1,028,902
woocommerce 797,771
revslider 591,142
jetpack 429,986
js_composer 407,797
wp-rocket 325,592
essential-addons-for-elementor-lite 257,055
gravityforms 252,205
google-site-kit 252,083
complianz-gdpr 251,842
cookie-law-info 223,076
instagram-feed 219,598
sitepress-multilingual-cms 206,336
header-footer-elementor 200,102
google-analytics-for-wordpress 198,850
bluehost-wordpress-plugin 189,410
elementskit-lite 173,844
gutenberg 157,637
litespeed-cache 145,316
cookie-notice 144,385
gutenberg-core 138,323
gtranslate 120,731
the-events-calendar 120,207
wpforms-lite 118,259
astra-sites 108,546
popup-maker 106,733
woocommerce-payments 105,151
tablepress 101,208
honeypot 96,402
coblocks 92,364
astra-addon 91,298
duracelltomi-google-tag-manager 88,273
wp-smushit 88,197
layerslider 86,406
all-in-one-seo-pack 86,193
bb-plugin 84,772
ml-slider 82,144
akismet 81,849
premium-addons-for-elementor 80,546
cleantalk-spam-protect 80,198
mailchimp-for-wp 78,714
megamenu 78,644
ewww-image-optimizer 76,811
wp-pagenavi 76,500
jet-engine 76,456
fusion-builder 75,370
smart-slider-3 74,262
gravityformsrecaptcha 72,802

Top 50 Themes

Theme Count
hello-elementor 608,717
Divi 482,775
astra 401,768
flatsome 145,406
Avada 118,318
generatepress 112,137
pub 95,660
oceanwp 77,960
kadence 77,621
enfold 66,901
salient 63,294
twentyseventeen 52,931
bb-theme 51,759
twentytwentyfour 51,690
betheme 51,447
cocoon-master 49,902
blocksy 49,691
h4 48,094
twentytwentyfive 45,723
woodmart 44,946
dt-the7 44,417
neve 37,022
Avada-Child-Theme 36,426
gox 35,880
lightning 30,789
bridge 30,311
twentytwentyone 29,362
swell 29,194
twentytwenty 27,983
bricks 26,807
Impreza 25,490
Newspaper 23,611
twentytwentythree 21,308
epik-redesign 18,836
twentytwentytwo 18,148
uncode 18,002
twentysixteen 17,270
pro 17,152
sydney 15,733
storefront 15,679
Total 14,079
factory-templates-4 13,887
hello-theme-child-master 13,646
themify-ultra 12,704
hestia 12,274
yootheme 12,251
yith-wonder 11,698
jupiter 11,584
porto 11,522
twentyfifteen 11,510