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

Update shortcode values using ajax call

The problem here is how PHP works. Once the server is done processing the GET request for a page, everything related to that request (i.e. values stored in global variables) is cleared and are lost. What you need to is to keep track of, one way or the other, the month index in the front … Read more