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

            $all_plugins = fs_get_plugins();

            $active_plugins_basenames = self::get_active_plugins_basenames( $blog_id );

            foreach ( $all_plugins as $basename => &$data ) {
                // By default set to inactive (next foreach update the active plugins).
                $data['is_active'] = false;
                // Enrich with plugin slug.
                $data['slug'] = self::get_plugin_slug( $basename );
            }

            // Flag active plugins.
            foreach ( $active_plugins_basenames as $basename ) {
                if ( isset( $all_plugins[ $basename ] ) ) {
                    $all_plugins[ $basename ]['is_active'] = true;
                }
            }

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

            $all_plugins = fs_get_plugins();

            $active_plugins_basenames = self::get_active_plugins_basenames( $blog_id );

            foreach ( $all_plugins as $basename => &$data ) {
                // By default set to inactive (next foreach update the active plugins).
                $data['is_active'] = false;
                // Enrich with plugin slug.
                $data['slug'] = self::get_plugin_slug( $basename );
            }

            // Flag active plugins.
            foreach ( $active_plugins_basenames as $basename ) {
                if ( isset( $all_plugins[ $basename ] ) ) {
                    $all_plugins[ $basename ]['is_active'] = true;
                }
            }

            return $all_plugins;
        }
private static function get_all_plugins ( $ blog_id = 0 ) { self :: require_plugin_essentials ( ) ; $ all_plugins = fs_get_plugins ( ) ; $ active_plugins_basenames = self :: get_active_plugins_basenames ( $ blog_id ) ; foreach ( $ all_plugins as $ basename => & $ data ) { // By default set to inactive (next foreach update the active plugins).
 $ data [ 'is_active' ] = false ; // Enrich with plugin slug.
 $ data [ 'slug' ] = self :: get_plugin_slug ( $ basename ) ; } // Flag active plugins.
 foreach ( $ active_plugins_basenames as $ basename ) { if ( isset ( $ all_plugins [ $ basename ] ) ) { $ all_plugins [ $ basename ] [ 'is_active' ] = true ; } } return $ all_plugins ; }
Get collection of all plugins with their activation status for a specified blog.

@author Vova Feldman (@svovaf)
@since  1.1.8

@param int $blog_id Since 2.0.0

@return array Key is the plugin file path and the value is an array of the plugin data.
Get collection of all plugins with their activation status for a specified blog .