get_sitestats

函数


get_sitestats ( No parameters )
返回值
  • (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. }
定义位置
  • wp-includes/ms-functions.php
    , line 22
引入
弃用

Gets the network’s site and user counts.

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

	return $stats;
}