public static function isEnabled($plugin)
    {
        $plugin_list = static::getPluginList();

        return (is_array($plugin_list) && in_array($plugin, $plugin_list)) ? true : false;
    }
public static function isEnabled($plugin)
    {
        $plugin_list = static::getPluginList();

        return (is_array($plugin_list) && in_array($plugin, $plugin_list)) ? true : false;
    }
public static function isEnabled ( $ plugin ) { $ plugin_list = static :: getPluginList ( ) ; return ( is_array ( $ plugin_list ) && in_array ( $ plugin , $ plugin_list ) ) ? true : false ; }
Check whether a given plugin is enabled
@param $plugin string plugin name
@return True or False
Check whether a given plugin is enabled