函数原型
get_sitestats(): int[]
函数描述
Gets the network’s site and user counts.
是否弃用
未弃用
函数参数
无
函数返回值
int[] Site and user count for the network.
blogsintNumber of sites on the network.usersintNumber of users on the network.
函数位置
File: wp-includes/ms-functions.php.
函数源码
function get_sitestats() {
$stats = array(
'blogs' => get_blog_count(),
'users' => get_user_count(),
);
return $stats;
}
源码链接
变更日志
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |

