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. }
定义位置
相关方法
get_sitesget_post_statusget_post_statesget_site_metaget_site
引入
-
弃用
-

get_sitests:此函数检索当前站点的统计信息数组。它不接受任何参数,并返回一组统计信息。

获得网络的站点和用户数量。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_sitestats() {
$stats = array(
'blogs' => get_blog_count(),
'users' => get_user_count(),
);
return $stats;
}
function get_sitestats() { $stats = array( 'blogs' => get_blog_count(), 'users' => get_user_count(), ); return $stats; }
function get_sitestats() {
	$stats = array(
		'blogs' => get_blog_count(),
		'users' => get_user_count(),
	);

	return $stats;
}

常见问题

FAQs
查看更多 >