includes/class-freemius.php
private function sync_site_license() {
            $api = $this->get_api_user_scope();

            $result = $api->get( "/licenses/{$this->_license->id}.json?license_key=" . urlencode( $this->_license->secret_key ), true );

            if ( ! $this->is_api_result_entity( $result ) ) {
                return $result;
            }

            $license = $this->_update_site_license( new FS_Plugin_License( $result ) );
            $this->_store_licenses();

            return $license;
        }
private function sync_site_license() {
            $api = $this->get_api_user_scope();

            $result = $api->get( "/licenses/{$this->_license->id}.json?license_key=" . urlencode( $this->_license->secret_key ), true );

            if ( ! $this->is_api_result_entity( $result ) ) {
                return $result;
            }

            $license = $this->_update_site_license( new FS_Plugin_License( $result ) );
            $this->_store_licenses();

            return $license;
        }
private function sync_site_license ( ) { $ api = $ this -> get_api_user_scope ( ) ; $ result = $ api -> get ( "/licenses/{$this->_license->id}.json?license_key=" . urlencode ( $ this -> _license -> secret_key ) , true ) ; if ( ! $ this -> is_api_result_entity ( $ result ) ) { return $ result ; } $ license = $ this -> _update_site_license ( new FS_Plugin_License ( $ result ) ) ; $ this -> _store_licenses ( ) ; return $ license ; }
Synchronize the site's context license by fetching the license form the API and updating the local data with it.

@author Vova Feldman (@svovaf)
@since  2.0.0

@return \FS_Plugin_License|mixed
Synchronize the site s context license by fetching the license form the API and updating the local data with it .