I have installed the Google Analyticator plugin on my site. I am also using the MobilePress plugin to serve up a theme designed for non-smart-phone mobile browsers. I have set up Google Analytics for Mobile for use in this theme and would like to disable the Analyticator plugin since it includes a call to a larger js file.
Does anyone know if it is possible to disable a plugin using functions.php or some other method?
I believe I have located the code that adds the functions to the page, so if it's not possible to disable the entire plugin is it possible to stop the actions for executing? I have tried to disable them directly with no luck. Here is the code from the plugin file:
add_action('wp_head', 'add_google_analytics', 999999); add_action('init', 'ga_outgoing_links');
I tried to remove those actions with:
remove_action('wp_head','add_google_analytics',9999999); remove_action('init', 'ga_outgoing_links');
Any help is greatly appreciated.