get_sitestats

Advertisement

Summery Summery

Gets the network’s site and user counts.

Syntax Syntax

get_sitestats()

Return 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.

Source Source

File: wp-includes/ms-functions.php

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

	return $stats;
}

Advertisement

Changelog Changelog

Changelog
Version Description
MU (3.0.0) Introduced.

Advertisement

Leave a Reply