How to find out if a particular plugin is enabled in a sub-blog in a multisite blog?


Hm, I am not entirely sure about mechanics here. Usual is_plugin_active() checks if plugin is in active_plugins option.

By this logic you could probably retrieve active_plugins of specific blog with get_blog_option() and check it for plugin.


Ya what Rarst said, for his example you can do something like the following but it returns an array with active plugin name/plugin_filename.php


You can try using use the global $plugin to get a lot more data.

global $plugins;

$plugins = array(
            'all' => apply_filters( 'all_plugins', get_plugins() ),
            'search' => array(),
            'active' => array(),
            'inactive' => array(),
            'recently_activated' => array(),
            'upgrade' => array(),
            'mustuse' => array(),
            'dropins' => array()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.