wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_sitestats › WordPress Function

Since
已弃用n/a
get_sitestats ( 没有参数 )
返回:
  • (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. }
定义在:
文档:
Change Log:
  • MU

Gets the network's site and user counts.



源码

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

	return $stats;
}