!
也想出现在这里? 联系我们
广告位
当前位置:首页>开发>WordPress开发手册>WordPress函数手册>WordPress函数文档get_active_blog_for_user()

WordPress函数文档get_active_blog_for_user()

获取用户可使用的博客 描述 Get one of a user’s active blogs Returns …--由S9社区整理

获取用户可使用的博客

描述

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

参数

$user_id

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

默认值: None

返回值

(object

The blog object

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

/* ———————————-
* wordpress函数 kim收集
* ———————————- */

  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

给TA打赏
共{{data.count}}人
人已打赏
WordPress函数手册

WordPress函数文档get_adjacent_post()

2023-6-16 19:38:29

WordPress函数手册

WordPress函数文档flush_rewrite_rules()

2023-6-16 19:39:04

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:林沐阳 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索