Last active
July 20, 2018 06:02
-
-
Save wtmujeebu/d725ddb32e8a8841b4968c6f9054e1c5 to your computer and use it in GitHub Desktop.
Modify strictly enabled cookie categories using - WebToffee GDPR Cookie Consent plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function webtoffee_strictly_enabled_cookie_categories($strict_categories) { | |
$count = count($strict_categories); | |
$strict_categories[$count] = 'skroutz'; | |
$strict_categories[$count+1] = 'pixel'; | |
return $strict_categories; | |
} | |
add_filter('gdpr_strictly_enabled_category', 'webtoffee_strictly_enabled_cookie_categories'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment