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 id

Description

Returns the address of the blog specified by ID.

Parameters

$blog_id
(integer) (required) ID of blog queried.
Default: None

Return Values

(string) 
The address of the blog in question.

Usage

<?php get_blogaddress_by_id($blog_id); ?>

Examples

<?php
$blog_id 
1;
echo 
'Blog '.$blog_id.' can be found at '.get_blogaddress_by_id$blog_id );
?>