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.

Usage

get_sitestats();

Changelog

Since 3.0.0 Introduced.

get_sitestats() code WP 6.5.2

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

	return $stats;
}