get_blog_count

函式
get_blog_count ( $network_id = null )
引數
  • (int|null) $network_id ID of the network. Default is the current network.
    Required:
    Default: null
返回值
  • (int) Number of active sites on the network.
定義位置
相關方法
get_blog_postget_blog_optionget_blog_listget_blogs_of_userget_comment_count
引入
-
棄用
-

get_blog_count:此函式返回多站點安裝上的部落格總數。它不接受任何引數。

獲取安裝的活動站點的數量。

該計數是快取的,每天更新兩次: 這不是一個實時計數。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_blog_count( $network_id = null ) {
return get_network_option( $network_id, 'blog_count' );
}
function get_blog_count( $network_id = null ) { return get_network_option( $network_id, 'blog_count' ); }
function get_blog_count( $network_id = null ) {
	return get_network_option( $network_id, 'blog_count' );
}

常見問題

FAQs
檢視更多 >