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:此函式檢索當前站點的統計資訊陣列。它不接受任何引數,並返回一組統計資訊。

獲得網路的站點和使用者數量。

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

	return $stats;
}

常見問題

FAQs
檢視更多 >