get_blog_count

函数
get_blog_count ( $network_id = null )
参数
  • (int|null) $network_id ID of the network. Default is the current network.
    Required:
    Default: null
返回值
  • (int) Number of active sites on the network.
定义位置
相关方法
get_blog_postget_blog_optionget_blog_listget_blogs_of_userget_comment_count
引入
-
弃用
-

get_blog_count:此函数返回多站点安装上的博客总数。它不接受任何参数。

获取安装的活动站点的数量。

该计数是缓存的,每天更新两次: 这不是一个实时计数。

function get_blog_count( $network_id = null ) {
	return get_network_option( $network_id, 'blog_count' );
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 17:36:36

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: