WordPress.org

Ready to get started?Download WordPress

Codex

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

WPMU Functions/get blogaddress by name

Description

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

Parameters

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

Return Values

(string) 
Returns the blog url.

Usage

<?php get_blogaddress_by_name($blogname); ?>