Documentation/GDPR Cookie Consent/How to modify duration of cookie consent

How to modify duration of cookie consent

By default, the GDPR Cookie Consent plugin preserves the cooke consent for a duration of 365 days. If you want to modify this default behaviour, simply place the below given code snippet into the function.php of active child theme.

In the above snippet, the cookie consent will be asked within a duration of every 30 days. You can replace 30 with the required number of days within the code to repeat the cookie consent within that time interval.

  • Was this article helpful?
  • YesNo