includes/class-freemius.php
private static function get_active_plugins_basenames( $blog_id = 0 ) {
            if ( is_multisite() && $blog_id > 0 ) {
                $active_basenames = get_blog_option( $blog_id, 'active_plugins' );
            } else {
                $active_basenames = get_option( 'active_plugins' );
            }

            if ( is_multisite() ) {
                $network_active_basenames = get_site_option( 'active_sitewide_plugins' );

                if ( is_array( $network_active_basenames ) && ! empty( $network_active_basenames ) ) {
                    $active_basenames = array_merge( $active_basenames, $network_active_basenames );
                }
            }

            return $active_basenames;
        }
private static function get_active_plugins_basenames( $blog_id = 0 ) {
            if ( is_multisite() && $blog_id > 0 ) {
                $active_basenames = get_blog_option( $blog_id, 'active_plugins' );
            } else {
                $active_basenames = get_option( 'active_plugins' );
            }

            if ( is_multisite() ) {
                $network_active_basenames = get_site_option( 'active_sitewide_plugins' );

                if ( is_array( $network_active_basenames ) && ! empty( $network_active_basenames ) ) {
                    $active_basenames = array_merge( $active_basenames, $network_active_basenames );
                }
            }

            return $active_basenames;
        }
private static function get_active_plugins_basenames ( $ blog_id = 0 ) { if ( is_multisite ( ) && $ blog_id > 0 ) { $ active_basenames = get_blog_option ( $ blog_id , 'active_plugins' ) ; } else { $ active_basenames = get_option ( 'active_plugins' ) ; } if ( is_multisite ( ) ) { $ network_active_basenames = get_site_option ( 'active_sitewide_plugins' ) ; if ( is_array ( $ network_active_basenames ) && ! empty ( $ network_active_basenames ) ) { $ active_basenames = array_merge ( $ active_basenames , $ network_active_basenames ) ; } } return $ active_basenames ; }
Get the basenames of all active plugins for specific blog. Including network activated plugins.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param int $blog_id

@return string[]
Get the basenames of all active plugins for specific blog . Including network activated plugins .