Support » Plugin: Zendesk Chat » How to disable until cookies are accepted

  • Hello,
    Im trying to disable chat widget until user accept cookies (Cookie Notice by dFactory).
    Im using this function:

    if ( function_exists('cn_cookies_accepted') && ! cn_cookies_accepted() ) {
    	add_action('wp_footer','ab_disable_chat', 20);
        function ab_disable_chat() {
    $zopim(function() {

    But problem is that chat window is not showing before and after cookies are accepted too. I checked html source code, echoed <script> is not included (after cookies are accepted, cache plugin deactivated).
    Is this problem of Zopim plugin?

    Thanks you

  • The topic ‘How to disable until cookies are accepted’ is closed to new replies.