droverload
Forum Replies Created
-
OK, Donncha, thanks a lot for your help. I eventually got rid of the consent plugin and use JavaScript and storing the consent record in localStorage rather than using a cookie. Now I’m back to WP-Supercache working.
I think I’m misunderstanding something fundamental in how the plugin works then.
What I want is to serve visitors (the ones who aren’t logged in) the WP-Supercached version of the site once they’ve accepted the cookie notice. Are you saying that once cookies are being used, WP_Supercache can’t do anything?
So from what I can see I should add the following code (cookieName obviously being the name of the cookie):
function add_wpsc_cookie_banner() {
do_action( 'wpsc_add_cookie', cookieName );
}
add_action( 'init', 'add_wpsc_cookie_banner' );My question is where do I put it exactly? I’m not too sure which file it (and the cookie removal action if I uninstall) would run from. How many times would it run/how often does it need to run? Each time the plugin is updated/reinstalled?
Thanks for your response, Donncha. From there I was able to see the issue is being caused by a cookie consent plugin that in turn adds a cookie once the use accepts terms.
I’ll try following the info from the link you provided.
- This reply was modified 1 year, 3 months ago by droverload.