WordPress at a glance
function is not described

get_sitestats() WP 3.0.0

Gets the network's site and user counts.

No Hooks.

Return

Int[]. Site and user count for the network.

  • $blogs (int)
    Number of sites on the network.

  • $users (int)
    Number of users on the network.

Usage

get_sitestats();

Changelog

Since 3.0.0 Introduced.

Code of get sitestats: wp-includes/ms-functions.php WP 5.4.1

<?php
function get_sitestats() {
	$stats = array(
		'blogs' => get_blog_count(),
		'users' => get_user_count(),
	);

	return $stats;
}