get_active_blog_for_user()获取用户可使用的博客

目录

描述

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.

get_active_blog_for_user() 描述

用法

<?php get_active_blog_for_user$user_id ); ?>

get_active_blog_for_user() 用法

参数

$user_id

(int) (必填) The unique ID of the user

默认值: None

get_active_blog_for_user() 参数

返回值

(object

The blog object

get_active_blog_for_user() 返回值

历史

添加于 版本: 1.0

get_active_blog_for_user() 历史