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



get_blog_count › WordPress Function

Since
已弃用n/a
get_blog_count ( $network_id = null )
参数:
  • (int|null) $network_id ID of the network. Default is the current network.
    Required: No
    默认: null
返回:
  • (int) Number of active sites on the network.
定义在:
文档:
Change Log:
  • 3.7.0
  • 4.8.0

Gets the number of active sites on the installation.

The count is cached and updated twice daily. This is not a live count.


源码

function get_blog_count( $network_id = null ) {
	return get_network_option( $network_id, 'blog_count' );
}