includes/class-freemius.php
private static function get_site_active_plugins( $blog_id = 0 ) {
            $active_basenames = ( is_multisite() && $blog_id > 0 ) ?
                get_blog_option( $blog_id, 'active_plugins' ) :
                get_option( 'active_plugins' );

            $active = array();

            if ( ! is_array( $active_basenames ) ) {
                return $active;
            }

            foreach ( $active_basenames as $basename ) {
                $active[ $basename ] = array(
                    'is_active' => true,
                    'Version'   => '1.0', // Dummy version.
                    'slug'      => self::get_plugin_slug( $basename ),
                );
            }

            return $active;
        }
private static function get_site_active_plugins( $blog_id = 0 ) {
            $active_basenames = ( is_multisite() && $blog_id > 0 ) ?
                get_blog_option( $blog_id, 'active_plugins' ) :
                get_option( 'active_plugins' );

            $active = array();

            if ( ! is_array( $active_basenames ) ) {
                return $active;
            }

            foreach ( $active_basenames as $basename ) {
                $active[ $basename ] = array(
                    'is_active' => true,
                    'Version'   => '1.0', // Dummy version.
                    'slug'      => self::get_plugin_slug( $basename ),
                );
            }

            return $active;
        }
private static function get_site_active_plugins ( $ blog_id = 0 ) { $ active_basenames = ( is_multisite ( ) && $ blog_id > 0 ) ? get_blog_option ( $ blog_id , 'active_plugins' ) : get_option ( 'active_plugins' ) ; $ active = array ( ) ; if ( ! is_array ( $ active_basenames ) ) { return $ active ; } foreach ( $ active_basenames as $ basename ) { $ active [ $ basename ] = array ( 'is_active' => true , 'Version' => '1.0' , // Dummy version.
 'slug' => self :: get_plugin_slug ( $ basename ) , ) ; } return $ active ; }
Get collection of all site active plugins for a specified blog.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param int $blog_id

@return array[string]array
Get collection of all site active plugins for a specified blog .