Is there a way to add a function or something else in WordPress so that all first-party cookies for guests (let's assume that there are no public user registrations) are disabled until consent is given by the user?
And if this consent is withdrawn the cookies should be expired automatically.
For example wpDiscuz cookies (and other comment form cookies for different plugins) and etc.
The idea is that such a solution should prevent WordPress and its plugins to set cookies without explicit consent.
THE HARD WAY: CODE IT ALL YOURSELF! Identify all scripts on your site that set cookies, write a script that blocks cookies from being set until your user has given an explicit consent and implement it in your website's source code – voilà.
The only way to disable cookies and anything related to them on your WordPress.com website would be to upgrade to one of their paid plans. If you upgrade to one of WordPress.com's paid hosting plans you could disable all the cookies you like and have full control and autonomy over your WordPress website.
WordPress cookie consent. Because the GDPR gives users more control over their data, businesses that use cookies on their websites must secure cookie consent from visitors. If you have website visitors from the EU, you're responsible for staying compliant.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With