WordPress.org

Codex

WPMU Functions/get blogaddress by domain

Contents

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); ?>