Thread Starter
mseb
(@mseb)
Hi, is there any feedback here? This is a compliance issue actually… Thx, Mirko
@mseb yes we’re currently working out the details on how to integrate with these cookie plugins. It’s a little difficult but most likely we’re going to add a developer hook that would allow other plugins to basically shut off or turn on certain features. Please stay tuned for the updates. It’s currently in development now.
Kindly take into consideration adding a filter so that we can modify script tags so that they are supported by cookie plugins which use javascript to load only after user consent. This solution avoids server-side logic which will cause issues with cache systems.
Something similar to what FB is doing:
add_filter(‘wc_facebook_pixel_script_attributes’,’wc_facebook_pixel_script_attributes_callback’);
function wc_facebook_pixel_script_attributes_callback() {
return array(‘type’ => ‘text/plain’,
‘class’ => ‘_iub_cs_activate-inline’,
‘data-iub-purposes’ => 5);
}
Thank you
Thread Starter
mseb
(@mseb)
Anybody working on this here? Or I need to take it off due to non compliance with GDPR.
Hi @mseb @jesus225, in the next version of the plugin we will be providing documentation in our Wiki around how to implement a custom filter for cookie deactivation.
While we don’t have an exact date for the rollout of v2.5.2, you can download the latest development version of the plugin on GitHub if you’re in a hurry. Since this is not an official release, please take the necessary precautions for backups or use on a staging environment prior to pushing to your production website.
Thread Starter
mseb
(@mseb)
Hi there, I have updated to v2.5.2 but in your wiki I cannot find any instructions on how to deactivate the cookie, could you please let me know? Thx, Mirko
@mseb this is the link for the wiki page that explains everything you’ll need.
Let us know if you have any other questions!
Thread Starter
mseb
(@mseb)
Thanks, I can just add that code to the functions.php and then it will be deactivated, correct?
@mseb this is considered “custom code” and as an example for you to use within your own store’s context. We provide the basics so you can have things developed. If you’re not a programmer or feel comfortable editing php files in your store, please consult a contractor.
That being said, yes you can copy paste that code and it will disable all cookies being used.