Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @gcgspain,

    Thanks for using our plugins.

    You can try the following code snippet (should be added to functions.php) to disable the comments until the third party cookies are not accepted:

    add_action('comments_open', function( $comments_open ){
    	if ( function_exists( 'gdpr_cookie_is_accepted' ) ) :
    	  /* supported types: 'strict', 'thirdparty', 'advanced' */
    	  if ( gdpr_cookie_is_accepted( 'thirdparty' ) ) :
          return $comments_open;
        else :
        	return false;
        endif;
      endif;
    	return $comments_open;
    });

    Hope this helps.

    Thread Starter gcgspain

    (@gcgspain)

    Ah great!! This works perfect. Many Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Block Disqus cookie’ is closed to new replies.