includes/class-freemius.php
private static function get_active_plugins( $blog_id = 0 ) {
            self::require_plugin_essentials();

            $active_plugin            = array();
            $all_plugins              = fs_get_plugins();
            $active_plugins_basenames = self::get_active_plugins_basenames( $blog_id );

            foreach ( $active_plugins_basenames as $plugin_basename ) {
                $active_plugin[ $plugin_basename ] = $all_plugins[ $plugin_basename ];
            }

            return $active_plugin;
        }
private static function get_active_plugins( $blog_id = 0 ) {
            self::require_plugin_essentials();

            $active_plugin            = array();
            $all_plugins              = fs_get_plugins();
            $active_plugins_basenames = self::get_active_plugins_basenames( $blog_id );

            foreach ( $active_plugins_basenames as $plugin_basename ) {
                $active_plugin[ $plugin_basename ] = $all_plugins[ $plugin_basename ];
            }

            return $active_plugin;
        }
private static function get_active_plugins ( $ blog_id = 0 ) { self :: require_plugin_essentials ( ) ; $ active_plugin = array ( ) ; $ all_plugins = fs_get_plugins ( ) ; $ active_plugins_basenames = self :: get_active_plugins_basenames ( $ blog_id ) ; foreach ( $ active_plugins_basenames as $ plugin_basename ) { $ active_plugin [ $ plugin_basename ] = $ all_plugins [ $ plugin_basename ] ; } return $ active_plugin ; }
Get collection of all active plugins. Including network activated plugins.

@author Vova Feldman (@svovaf)
@since  1.0.9

@param int $blog_id Since 2.0.0

@return array[string]array
Get collection of all active plugins . Including network activated plugins .