Home > Docs > GDPR Cookie Consent > Modify Strictly Enabled Cookie Categories Using WebToffee GDPR Cookie Consent Plugin

Modify Strictly Enabled Cookie Categories Using WebToffee GDPR Cookie Consent Plugin

Last updated on January 24, 2024

The below code snippet will allow you to make any cookie category a strictly necessary category using GDPR Cookie Consent Plugin. The user cannot disable the categories that are strictly necessary from the settings pop-up.

To achieve this:

  • From your WordPress dashboard, go to Appearance > Theme editor.
  • Then, add the below given code snippet at the bottom end of functions.php of the active theme file.
  • You can replace ‘functional’, ‘others’ from the below code with the category slug that you want as strictly enabled.