get_sitestats()WP 3.0.0

Gets the network's site and user counts.

Хуков нет.

Возвращает

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

Использование

get_sitestats();

Список изменений

С версии 3.0.0 Введена.

Код get_sitestats() WP 6.5.2

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

	return $stats;
}