wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_sitestats › WordPress Function

Depuis
Dépréciéen/a
get_sitestats ( Pas de paramètres )
Retourne:
  • (int[]) { Site and user count for the network. @type int $blogs Number of sites on the network. @type int $users Number of users on the network. }
Défini(e) dans:
Codex:
Changelog:
  • MU

Gets the network's site and user counts.



Source

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

	return $stats;
}