Support » Fixing WordPress » How to disable cookie consent box BUT automatically save email and name?

  • muchmuch11

    (@muchmuch11)


    Hi, is there a way to disable cookie consent box BUT automatically save email and name when visitor leave comment on the site? Just like before 4.9.6. I have 0 visitors from EU, so I’m not concerned about GDPR.

    Visitors who forget to tick cookie consent won’t see the comment in moderation, this is causing visitors to repost the comments multiple times.

    Thanks!

Viewing 1 replies (of 1 total)
  • I tried this code but only remove the consent tick, not defaulting to OK, like pre 4.9.6

    function comment_form_hide_cookies_consent( $fields ) {
    	unset( $fields['cookies'] );
    	return $fields;
    }
    add_filter( 'comment_form_default_fields', 'comment_form_hide_cookies_consent' );

    Anybody can help me? Thanks a lot!

Viewing 1 replies (of 1 total)
  • The topic ‘How to disable cookie consent box BUT automatically save email and name?’ is closed to new replies.