includes/class-freemius.php
function get_install_by_blog_id( $blog_id = null ) {
            $installs = self::get_all_sites( $this->_module_type, $blog_id );
            $install  = isset( $installs[ $this->_slug ] ) ? $installs[ $this->_slug ] : null;

            if ( is_object( $install ) &&
                 is_numeric( $install->id ) &&
                 is_numeric( $install->user_id ) &&
                 FS_Plugin_Plan::is_valid_id( $install->plan_id )
            ) {
                // Load site.
                $install = clone $install;
            }

            return $install;
        }
function get_install_by_blog_id( $blog_id = null ) {
            $installs = self::get_all_sites( $this->_module_type, $blog_id );
            $install  = isset( $installs[ $this->_slug ] ) ? $installs[ $this->_slug ] : null;

            if ( is_object( $install ) &&
                 is_numeric( $install->id ) &&
                 is_numeric( $install->user_id ) &&
                 FS_Plugin_Plan::is_valid_id( $install->plan_id )
            ) {
                // Load site.
                $install = clone $install;
            }

            return $install;
        }
function get_install_by_blog_id ( $ blog_id = null ) { $ installs = self :: get_all_sites ( $ this -> _module_type , $ blog_id ) ; $ install = isset ( $ installs [ $ this -> _slug ] ) ? $ installs [ $ this -> _slug ] : null ; if ( is_object ( $ install ) && is_numeric ( $ install -> id ) && is_numeric ( $ install -> user_id ) && FS_Plugin_Plan :: is_valid_id ( $ install -> plan_id ) ) { // Load site.
 $ install = clone $ install ; } return $ install ; }
Load the module's install based on the blog ID.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param int|null $blog_id

@return FS_Site
Load the module s install based on the blog ID .