WordPress at a glance
function is not described

get_blogaddress_by_domain() WP 3.0.0

Deprecated in from version 3.7.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Get a full blog URL, given a domain and a path.

No Hooks.

Return

String.

Usage

get_blogaddress_by_domain( $domain, $path );
$domain(string) (required)
$path(string) (required)

Changelog

Since 3.0.0 Introduced.
Deprecated 3.7.0

Code of get_blogaddress_by_domain() WP 5.5.2

<?php
function get_blogaddress_by_domain( $domain, $path ) {
	_deprecated_function( __FUNCTION__, '3.7.0' );

	if ( is_subdomain_install() ) {
		$url = "http://" . $domain.$path;
	} else {
		if ( $domain != $_SERVER['HTTP_HOST'] ) {
			$blogname = substr( $domain, 0, strpos( $domain, '.' ) );
			$url = 'http://' . substr( $domain, strpos( $domain, '.' ) + 1 ) . $path;
			// We're not installing the main blog.
			if ( 'www.' !== $blogname )
				$url .= $blogname . '/';
		} else { // Main blog.
			$url = 'http://' . $domain . $path;
		}
	}
	return esc_url_raw( $url );
}