WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

WPMU Functions/get blogaddress by domain

Description

Looks up the blog URL based on the domain as a search term.

Parameters

$domain
(string) (required) The domain of the blog to look for.
Default: None
$path
(string) (required) The path of the blog to look for.
Default: None

Return Values

(string) 
Returns the blog url.

Usage

<?php get_blogaddress_by_domain($domain$path); ?>