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



get_blog_count ›

Since3.7.0
已弃用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:
  • 4.8.0
  • MU

The number of active sites on your 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' );
}