Skip to content

Instantly share code, notes, and snippets.

@wtmujeebu
Last active July 20, 2018 06:02
Show Gist options
  • Save wtmujeebu/d725ddb32e8a8841b4968c6f9054e1c5 to your computer and use it in GitHub Desktop.
Save wtmujeebu/d725ddb32e8a8841b4968c6f9054e1c5 to your computer and use it in GitHub Desktop.
Modify strictly enabled cookie categories using - WebToffee GDPR Cookie Consent plugin
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