你安装的活动站点数。
原型
get_blog_count( int|null $network_id = null )
描述
计数每天缓存和更新两次。这不是实时计数。
参数
$network_id
(int|null)
(Optional)
网络ID。默认是当前网络。
返回值
(int)
网络上的活动站点数。
源文件
路径:wp-includes/ms-functions.php
<?php
...
function get_blog_count( $network_id = null ) {
return get_network_option( $network_id, 'blog_count' );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/get_blog_count/