get_active_blog_for_user()

获取用户可使用的博客

用法

<?php get_active_blog_for_user( $user_id ); ?>

参数

$user_id

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

默认值: None

返回值

(object

The blog object

  stdClass Object

  (

      [blog_id] => 1

      [site_id] => 1

      [domain] => example–domain.com

      [path] => /

      [registered] => 2013–12–02 19:00:48

      [last_updated] => 2013–12–02 19:37:43

      [public] => 1

      [archived] => 0

      [mature] => 0

      [spam] => 0

      [deleted] => 0

      [lang_id] => 0

      [blogname] => Example Site Name

      [siteurl] => http://example-domain.com

      [post_count] => 9

  )

历史

添加于 版本: 1.0

原文:http://codex.wordpress.org/Function_Reference/get_active_blog_for_user

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索