Codex tools: Log in
Contents |
Get one of a user's active blogs
Returns the user's primary blog, if she has one and it is active. If it's inactive, function returns another active blog of the user. If none are found, the user is added as a Subscriber to the Dashboard Blog and that blog is returned.
<?php get_active_blog_for_user( $user_id ); ?>
Since: 1.0
get_active_blog_for_user() is located in wp-includes/ms-functions.php