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 active blog for user

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