• Hi,

    Does anyone manage to disable the Chat for Admin user rol?

    I think this could be done with a function in myTheme/functions.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • I quickly hacked into the code to disable this, by editing file tawkto.php, starting in line 260 :

    
    public function print_embed_code() {
    	if ( current_user_can('administrator') ) {
    		return false;
    	}
    	[...]
    }
    

    Hopefully offical developpers will add this as an option at some point.

    • This reply was modified 5 years, 5 months ago by Stan Ozier.
    Thread Starter chefnelone

    (@chefnelone)

    Works like a charm!

    @developers: add this feature. It is a must.

    Thanks.

    I was going to ask for this feature. Let’s hope they will do it soon.

    FYI version 0.4.2 has just been released and still does not support this option.
    So you may want to modify you tawkto.php file again after updating the plugin (same modification on same line as above).

    Version 0.4.3 (Sept 2020) still doesn’t support this ??

    Code patch still needs to be applied.

    Stan Ozier

    (@spcdev1)

    Version 0.5.0 (February 2021) still requires this patch if you want to disable the chat when logged in as an admin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to disable chat for Admin role?’ is closed to new replies.