get_sitestats(): int[]
Gets the network’s site and user counts.
Return
int[] Site and user count for the network.
blogs
intNumber of sites on the network.users
intNumber of users on the network.
Source
File: wp-includes/ms-functions.php
.
View all references
function get_sitestats() {
$stats = array(
'blogs' => get_blog_count(),
'users' => get_user_count(),
);
return $stats;
}
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |