A WordPress-centric search engine for devs and theme authors



get_blog_count ›

Since3.7.0
Deprecatedn/a
get_blog_count ( $network_id = null )
Parameters:
  • (int|null) $network_id ID of the network. Default is the current network.
    Required: No
    Default: null
Returns:
  • (int) Number of active sites on the network.
Defined at:
Codex:
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.



Source

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