get_sitestats()
最后更新于:2021-11-27 00:18:23
get_sitestats()Gets the network’s site and user counts.
响应
(int[]) Site and user count for the network.
-
‘blogs’
(int) Number of sites on the network. -
‘users’
(int) Number of users on the network.
源文件
文件: gc-includes/ms-functions.php
function get_sitestats() {
$stats = array(
'blogs' => get_blog_count(),
'users' => get_user_count(),
);
return $stats;
}