[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fIXfBDvqpl1S1Zu7Vn4oFwPGuuq9v2xCtVM3_IJ4kUBY":3},{"slug":4,"display_name":4,"profile_url":5,"plugin_count":6,"total_installs":7,"avg_security_score":8,"avg_patch_time_days":9,"trust_score":10,"computed_at":11,"plugins":12},"badabingbreda","https:\u002F\u002Fprofiles.wordpress.org\u002Fbadabingbreda\u002F",2,110,85,30,84,"2026-04-04T09:19:19.612Z",[13,36],{"slug":14,"name":15,"version":16,"author":4,"author_profile":5,"description":17,"short_description":18,"active_installs":19,"downloaded":20,"rating":19,"num_ratings":21,"last_updated":22,"tested_up_to":23,"requires_at_least":24,"requires_php":25,"tags":26,"homepage":31,"download_link":32,"security_score":8,"vuln_count":33,"unpatched_count":33,"last_vuln_date":34,"fetched_at":35},"easy-acf-connect-for-themer","Easy ACF Connect For Themer","1.1.5","\u003Cp>\u003Cstrong>Description\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Easily connect ACF fields in Beaver Themer. No need to remember the fieldnames, easily select from the dropdown. It returns all fieldnames, across all fieldgroups.\u003C\u002Fp>\n\u003Cp>Easy ACF Connect for Themer also supports ACF Fields on the current post, another post, user_id, tax_termid or even from your ACF Options pages.\u003C\u002Fp>\n\u003Cp>Select the Easy ACF Connector… Then simply select the fieldname.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Using the Conditional Logic filter\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Easy ACF Connect for Themer also supports adding conditional rules using ACF Fields on the current post or from your ACF Options pages. For that select either “Easy ACF Field” or “Easy ACF Option Field”.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Supported fieldtypes:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>color-picker\u003C\u002Fli>\n\u003Cli>date-picker\u003C\u002Fli>\n\u003Cli>date-time-picker\u003C\u002Fli>\n\u003Cli>email\u003C\u002Fli>\n\u003Cli>file\u003C\u002Fli>\n\u003Cli>flexible content\u003C\u002Fli>\n\u003Cli>gallery\u003C\u002Fli>\n\u003Cli>group\u003C\u002Fli>\n\u003Cli>image (array, url or image ID)\u003C\u002Fli>\n\u003Cli>link\u003C\u002Fli>\n\u003Cli>message\u003C\u002Fli>\n\u003Cli>number\u003C\u002Fli>\n\u003Cli>page link\u003C\u002Fli>\n\u003Cli>password\u003C\u002Fli>\n\u003Cli>post object\u003C\u002Fli>\n\u003Cli>checkbox\u003C\u002Fli>\n\u003Cli>radio\u003C\u002Fli>\n\u003Cli>range\u003C\u002Fli>\n\u003Cli>relationship\u003C\u002Fli>\n\u003Cli>repeater\u003C\u002Fli>\n\u003Cli>taxonomy\u003C\u002Fli>\n\u003Cli>select\u003C\u002Fli>\n\u003Cli>text\u003C\u002Fli>\n\u003Cli>textarea\u003C\u002Fli>\n\u003Cli>time_picker\u003C\u002Fli>\n\u003Cli>true_false\u003C\u002Fli>\n\u003Cli>url\u003C\u002Fli>\n\u003Cli>user\u003C\u002Fli>\n\u003Cli>wysiwyg\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cem>Please note that field support means that it will return the ACF-value as a variable (object, array, string or number). It’s up to the module to handle the returned variable.\u003C\u002Fem>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Adding support for more fieldtypes in list\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>If you use any third party or custom fieldtypes for ACF ( which can be found on \u003Ca href=\"https:\u002F\u002Fawesomeacf.com\" rel=\"nofollow ugc\">https:\u002F\u002Fawesomeacf.com\u003C\u002Fa> ) you can add those using a filter in your function.php:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'easy_acf_accepted_acf_field_types' , 'my_custom_add_acf_field_types' );\n\n\u002F**\n * Callback that adds one or more fieldtypes to the the easy_acf_accepted_field_types filter\n * @param  {array} $fieldtypes array with name->value, label->value pairs\n * @return {array}\n * @since 1.0.0\n *\u002F\nfunction my_custom_add_acf_fieldtypes( $fieldtypes ) {\n    $new_fieldtypes =  array(\n            array( 'name' => 'custom_fieldtype'         , 'label' => 'Custom Field Type' ),\n        );\n\n    $fieldtypes = array_merge( $fieldtypes , $new_fieldtypes );\n    return $fieldtypes;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cstrong>Conditional Rules for 3rd party fieldtypes\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>There is currently no support or way to extend for 3rd party fieldtypes using the conditional rules. This means that you won’t be able to pick fieldtypes based on the type. Use the conditional rules provided by Beaver Themer instead, but you will need to enter the fieldname manually.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>version history:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>v1.1.5\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>bugfix: added permission_callback to rest request\u003C\u002Fp>\n\u003Cp>\u003Cstrong>v1.1.4\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>added checkbox fieldtype to Beaver Builder conditional rules, it was missing.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>v1.1.3\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>added all remaining fieldtypes (flexible content, group, repeater, page link, post object, relationship, taxonomy, user)\u003C\u002Fp>\n\u003Cp>\u003Cstrong>v1.1.2\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>added Conditional Logic settings\u003C\u002Fp>\n\u003Cp>\u003Cstrong>v1.1.1\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>added image-size on image fields, tweaked the code, changed way to test for acf 4\u002F5, fixed save_format\u002Freturn_format for acf 4\u002F5, added textdomain and .pot file\u003C\u002Fp>\n\u003Cp>\u003Cstrong>v1.0.0\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>image and gallery field support\u003C\u002Fp>\n","Description Easily connect ACF fields in Beaver Themer. No need to remember the fieldnames, easily select from the dropdown.",100,3143,5,"2020-10-17T15:33:00.000Z","5.5.18","4.7","5.6",[27,28,29,30],"acf","beaver-builder","beaver-themer","connector","https:\u002F\u002Fwww.badabing.nl","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Feasy-acf-connect-for-themer.zip",0,null,"2026-03-15T15:16:48.613Z",{"slug":37,"name":38,"version":39,"author":4,"author_profile":5,"description":40,"short_description":41,"active_installs":42,"downloaded":43,"rating":33,"num_ratings":33,"last_updated":44,"tested_up_to":23,"requires_at_least":24,"requires_php":45,"tags":46,"homepage":48,"download_link":49,"security_score":8,"vuln_count":33,"unpatched_count":33,"last_vuln_date":34,"fetched_at":35},"cookie-connector-for-themer","Cookie Connector For Themer","1.3.1","\u003Cp>Cookie Connector for (Beaver) Themer\u003C\u002Fp>\n\u003Ch3>\u003C\u002Fh3>\n\u003Ch3>Plugin description\u003C\u002Fh3>\n\u003Cp>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\u002Fshow seperate nodes (modules, columns and\u002For rows) using cookie values.\u003C\u002Fp>\n\u003Cp>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:\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fbadabingbreda\u002Fcookie-connector-for-themer\u002F\" rel=\"nofollow ugc\">https:\u002F\u002Fgithub.com\u002Fbadabingbreda\u002Fcookie-connector-for-themer\u002F\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Using the Cookie Connector\u003C\u002Fstrong>\u003Cbr \u002F>\nYou can display the Cookie Connector wherever you’d normally insert it as a string, using either the \u003Cem>connect\u003C\u002Fem> or \u003Cem>insert\u003C\u002Fem> button.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Using the Conditional Logic filter\u003C\u002Fstrong>\u003Cbr \u002F>\nBecause 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.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Writing cookies values\u003C\u002Fstrong>\u003Cbr \u002F>\nCookies 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.\u003C\u002Fp>\n\u003Cp>To work around that, cookies can be written using an AJAX call.\u003Cbr \u002F>\n“Cookie Connector for Themer” enqueues a script that registers the \u003Ccode>cookieConnector\u003C\u002Fcode> object, which handles the security and sending of requests.\u003Cbr \u002F>\nLet’s consider the following html-code that is used in a HTML module:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003Cp>\u003Ca href=\"javascript:cookieConnector.set( 'setmycookie' , { cv: 'my cookie value' , valid: 3600 } );\">Set cookie value\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"javascript:cookieConnector.set( 'unsetmycookie' );\">Unset cookie value\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The first parameter is the \u003Ccode>actionname\u003C\u002Fcode> 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_’.\u003Cbr \u002F>\nYou can also add an extra, optional, third parameter \u003Ccode>debug\u003C\u002Fcode> that will add a console.log dump of the response, should you need to know what’s being answered:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003Cp>\u003Ca href=\"javascript:cookieConnector.set( 'setmycookie' , { cv: 'my cookie value' , valid: 3600 } , true );\">Set cookie value\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"javascript:cookieConnector.set( 'unsetmycookie', {} , true );\">Unset cookie value\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cstrong>Adding the PHP code to create\u002Fchange\u002Fdelete the cookie\u003C\u002Fstrong>\u003Cbr \u002F>\nClicking the link wil trigger an AJAX call that will set a cookie on the visitor’s device, if their browser allows it.\u003C\u002Fp>\n\u003Cp>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.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003C?php\n    add_action( 'wp_ajax_setmycookie' , 'callback_setmycookie' );\n    add_action( 'wp_ajax_nopriv_setmycookie' , 'callback_setmycookie' );\n    add_action( 'wp_ajax_unsetmycookie' , 'callback_setmycookie' );\n    add_action( 'wp_ajax_nopriv_unsetmycookie' , 'callback_setmycookie' );\n\n    function callback_setmycookie() {\n        \u002F\u002F first check if this ajax call is\n        \u002F\u002F done using the script belonging to the installation\n        \u002F\u002F\n        if( ! check_ajax_referer( 'cookie-security-nonce' , 'security' ) ) {\n            wp_send_json_error( 'Invalid security token sent.' );\n            wp_die();\n        }\n\n        \u002F\u002F Check if visitor has accepted the cookies from Cookie Notice plugin\n        \u002F\u002F If you're using another plugin, you should write your own check here\n        if ( !function_exists('cn_cookies_accepted') || !cn_cookies_accepted() ) {\n            wp_die();\n        }\n        if ( !defined( 'DOING_AJAX' ) ) define( 'DOING_AJAX' , TRUE );\n\n        \u002F\u002F set your cookie name here\n        $cookie_name = 'mylanguage';\n        $default_validity = 60 * 60; \u002F\u002F = 60 minutes\n\n        \u002F\u002F try to get the cookie_value\n        $cookie_value = isset( $_GET['cv'] ) ? $_GET['cv'] : false;\n        \u002F\u002F try to get the cookie validity period. If not default to default validity\n        $cookie_valid = isset( $_GET['valid'] ) ? $_GET['valid'] : $default_validity;\n\n        \u002F\u002F if the action is setmycookie we need a cookie_value (cv) because else it will fail. Check for it and return an error if there isn't one.\n        if ( ! $cookie_value && $_GET['action'] == 'setmycookie' ) {\n            wp_send_json_error( array( 'success' => false, 'error' => '402', 'message' => 'cookie not set, no value given. ( cv )' ) );\n        }\n\n        \u002F\u002F check action parameter\n        \u002F\u002F UNSET mycookie\n        if ( 'unsetmycookie' == $_GET['action'] ) {\n            setcookie( $cookie_name , 'unset value' , time() - 1 , COOKIEPATH, COOKIE_DOMAIN , isset($_SERVER[\"HTTPS\"]) );\n            wp_send_json( array( 'success' => true, 'message' => \"Done unsetting cookie '{$cookie_name}'.\" ) );\n        } else if ( 'setmycookie' == $_GET['action'] ) {\n            setcookie( $cookie_name , $cookie_value , time() + $cookie_valid , COOKIEPATH, COOKIE_DOMAIN , isset($_SERVER[\"HTTPS\"]), true );\n            wp_send_json( array( 'success' => true, 'message' => \"Done setting cookie '{$cookie_name}' to value '{$cookie_value}' with validity $cookie_valid seconds.\" ) );\n\n        }\n        wp_die();\n    }\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>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.\u003Cbr \u002F>\nFor 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.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003Cscript>\n        function cookie_trigger() {\n            jQuery.when( cookieConnector.set( 'setmycookie', { cv: jQuery( '#selectlanguage' ).val(), valid: 5 * 60 }, 1 ))\n            .done( function( data ) {\n                if ( data.success ) {\n                    alert( data.message + '\\r You can now safely shut down your browser, restart and visit this URL. This selectbox will reflect the last cookie value.' );\n                    setTimeout( function() { location.reload(); }, 1500);\n                }\n            });\n        }\n\u003C\u002Fscript>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Special thanks\u003Cbr \u002F>\nThanks to 10UP for creating this github action for easy deployment. https:\u002F\u002Fgithub.com\u002Fmarketplace\u002Factions\u002Fwordpress-plugin-deploy\u003C\u002Fp>\n\u003Cp>\u003Cstrong>version history\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>1.3.1\u003C\u002Fstrong>\u003Cbr \u002F>\nForgot 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.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>1.3.0\u003C\u002Fstrong>\u003Cbr \u002F>\nRewrite of plugin using Autoloader. Fixed isset error.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>1.2.0\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Removed admin_notice so that plugin can be used without Beaver Themer and Beaver Builder too (scripts), for ajax calls.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>1.1.0\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Updated the version because it works on WP 5.4 too\u003C\u002Fp>\n\u003Cp>\u003Cstrong>1.0.1\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Updated example code\u003C\u002Fp>\n\u003Cp>\u003Cstrong>1.0.0\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Initial release (January 18th, 2019)\u003C\u002Fp>\n","Cookie Connector for (Beaver) Themer",10,1663,"2023-06-01T14:26:00.000Z","5.6.3",[28,29,30,47],"cookie","","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fcookie-connector-for-themer.1.3.1.zip"]