• Resolved gokushan

    (@gokushan)


    Hi

    I have downloaded your plugin and it works fine for me. I get to block Google analitycs cookies like _ga, _gid and _gat when user want to do it. Now, i want to block the cookies coment_author, comment_author_email, comment_author_url when the user so wishes but i don´t know how do this.

    I don´t find information about where i have to apply the below instructions

    https://gdpr-wp.com/knowledge-base/enabling-or-disabling-functionality-based-on-consent-and-cookies/

    I don´t know how to disable this cookie neither jetpack_comments_subscribe which is very similar. Have anyone the same issue and know how do it?

    I understand how to do it when you know how to disable the cookie but in these two cases i don´t know how disable both cookies. I have to use this code

    if ( ! has_consent( ‘cookie_name’ ) || ! is_allowed_cookie( ‘cookie_name’ ) )

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Fernando Claussen

    (@fclaussen)

    Hi @gokushan,

    For WordPress comments, you would use the WordPress hook.

    remove_action( 'set_comment_cookies', 'wp_set_comment_cookies' );

    Thread Starter gokushan

    (@gokushan)

    Ok. Thanks. I have added this code to my functions.php and it works fine

    if ( ! is_allowed_cookie( ‘comment_author’ ) ) {
    remove_action( ‘set_comment_cookies’, ‘wp_set_comment_cookies’ );
    }

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Block cookie comment_author_’ is closed to new replies.