includes/class-freemius.php
function is_delegated_connection( $blog_id = 0 ) {
            if ( ! $this->_is_network_active ) {
                return false;
            }

            if ( fs_is_network_admin() && 0 == $blog_id ) {
                return $this->is_network_delegated_connection();
            }

            return (
                $this->is_network_delegated_connection() ||
                $this->is_site_delegated_connection( $blog_id )
            );
        }
function is_delegated_connection( $blog_id = 0 ) {
            if ( ! $this->_is_network_active ) {
                return false;
            }

            if ( fs_is_network_admin() && 0 == $blog_id ) {
                return $this->is_network_delegated_connection();
            }

            return (
                $this->is_network_delegated_connection() ||
                $this->is_site_delegated_connection( $blog_id )
            );
        }
function is_delegated_connection ( $ blog_id = 0 ) { if ( ! $ this -> _is_network_active ) { return false ; } if ( fs_is_network_admin ( ) && 0 == $ blog_id ) { return $ this -> is_network_delegated_connection ( ) ; } return ( $ this -> is_network_delegated_connection ( ) || $ this -> is_site_delegated_connection ( $ blog_id ) ) ; }
Check if delegated the connection. When running within the the network admin,
and haven't specified the blog ID, checks if network level delegated. If running
within a site admin or specified a blog ID, check if delegated the connection for
the current context site.

If executed outside the the admin, check if delegated the connection
for the current context site OR the whole network.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param int $blog_id If set, checks if network delegated or blog specific delegated.

@return bool
Check if delegated the connection . When running within the the network admin and haven t specified the blog ID checks if network level delegated . If running within a site admin or specified a blog ID check if delegated the connection for the current context site .