WordPress at a glance
function is not described

get_blog_count() WP 3.0.0

The number of active sites on your installation.

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

  • Since 3.7.0 The $network_id parameter has been deprecated.
  • Since 4.8.0 The $network_id parameter is now being used.

No Hooks.


Int. Number of active sites on the network.


get_blog_count( $network_id );
ID of the network.
Default: current network

Code of get blog count: wp-includes/ms-functions.php WP 5.2.2

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