Disable all cookies set by a plugin in WordPress until a consent is provided Disable all cookies set by a plugin in WordPress until a consent is provided wordpress wordpress

Disable all cookies set by a plugin in WordPress until a consent is provided


If you want to use a plugin for this reason, there is a very good one, called:
Cookiebot | GDPR/CCPA Compliant Cookie Consent and Control
but in free version you could have only 5 pages. More than 5 pages, you must buy a monthly subscription. I use this plugin for companies sites, small businesses e.t.c.

Another solution you may like and I use a lot, is this plugin:
GDPR Cookie Consent

This addon has a "Necessary" and "Non-necessary" options, that you could have the appropriate scripts you may have. Furthermore, every one of these choices have a header - footer section. Thus, your scripts could copy - paste inside these sections. After that, if user press "Accept" button for cookies, all these scripts would be loaded!

hope these info helps!