On this page
get_sitestats(): int[]
Gets the network’s site and user counts.
Return
int[] Site and user count for the network.
blogsintNumber of sites on the network.usersintNumber 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;
}
Related
Uses
| Uses | Description |
|---|---|
| get_blog_count() wp-includes/ms-functions.php | Gets the number of active sites on the installation. |
| get_user_count() wp-includes/user.php | Returns the number of active users in your installation. |
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_sitestats