get_blog_count()
最后更新于:2021-11-26 06:11:24
get_blog_count( int|null$network_id=null)The number of active sites on your installation.
参数
- $network_id
-
(int|null) (Optional) ID of the network. Default is the current network.
Default value: null
响应
(int) Number of active sites on the network.
源文件
文件: gc-includes/ms-functions.php
function get_blog_count( $network_id = null ) {
return get_network_option( $network_id, 'blog_count' );
}