includes/class-freemius.php
private function is_license_network_active( $except_blog_id = 0 ) {
            $this->_logger->entrance();

            if ( ! is_object( $this->_license ) ) {
                return false;
            }

            $sites = self::get_sites();

            if ( $this->_license->total_activations() < ( count( $sites ) - 1 ) ) {
                // There are more sites than the number of activations, so license cannot be network activated.
                return false;
            }

            foreach ( $sites as $site ) {
                $blog_id = self::get_site_blog_id( $site );

                if ( $except_blog_id == $blog_id ) {
                    // Skip excluded blog.
                    continue;
                }

                $install = $this->get_install_by_blog_id( $blog_id );

                if ( is_object( $install ) && $install->license_id != $this->_license->id ) {
                    return false;
                }
            }

            return true;
        }
private function is_license_network_active( $except_blog_id = 0 ) {
            $this->_logger->entrance();

            if ( ! is_object( $this->_license ) ) {
                return false;
            }

            $sites = self::get_sites();

            if ( $this->_license->total_activations() < ( count( $sites ) - 1 ) ) {
                // There are more sites than the number of activations, so license cannot be network activated.
                return false;
            }

            foreach ( $sites as $site ) {
                $blog_id = self::get_site_blog_id( $site );

                if ( $except_blog_id == $blog_id ) {
                    // Skip excluded blog.
                    continue;
                }

                $install = $this->get_install_by_blog_id( $blog_id );

                if ( is_object( $install ) && $install->license_id != $this->_license->id ) {
                    return false;
                }
            }

            return true;
        }
private function is_license_network_active ( $ except_blog_id = 0 ) { $ this -> _logger -> entrance ( ) ; if ( ! is_object ( $ this -> _license ) ) { return false ; } $ sites = self :: get_sites ( ) ; if ( $ this -> _license -> total_activations ( ) < ( count ( $ sites ) - 1 ) ) { // There are more sites than the number of activations, so license cannot be network activated.
 return false ; } foreach ( $ sites as $ site ) { $ blog_id = self :: get_site_blog_id ( $ site ) ; if ( $ except_blog_id == $ blog_id ) { // Skip excluded blog.
 continue ; } $ install = $ this -> get_install_by_blog_id ( $ blog_id ) ; if ( is_object ( $ install ) && $ install -> license_id != $ this -> _license -> id ) { return false ; } } return true ; }
Checks if the context license is network activated except on the given blog ID.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param int $except_blog_id

@return bool
Checks if the context license is network activated except on the given blog ID .