Disable Plugin if not logged in
If you are the author/maintainer of chatbot/chatbot.php then it’s much easier to skip deactivating the plugin and put something like this at the top of the plugins PHP file: if ( ! is_user_logged_in() ) { // remove_action, etc… return; } Similarly using remove_action or remove_filter is much safer. In your case it may be as … Read more