get_blog_count( int|null $network_id = null )

The number of active sites on your installation.

Description Description

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

Parameters Parameters


(int|null) (Optional) ID of the network. Default is the current network.

Default value: null

Top ↑

Return Return

(int) Number of active sites on the network.

Top ↑

Source Source

File: wp-includes/ms-functions.php

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

Top ↑

Changelog Changelog

Version Description
MU (3.0.0) MU (3.0.0)
4.8.0 The $network_id parameter is now being used.
3.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.