WordPress.org

Codex

WPMU Functions/get active blog for user

Contents

Description

Gets an active blog for user, either primary blog or from blogs list.

Parameters

$user_id
(cast) (required) The user id to look up.
Default: None

Return Values

(object) 
Returns an object holding the details of the blog.

Usage

<?php get_active_blog_for_user($user_id); ?>