WPDev.one
Core Function
View Source on Trac ↗

get_blog_count()

get_blog_count( mixed $network_id = null )

Gets the number of active sites on the installation.

Parameters 1 required

Name / Type Description
(int

| null) $network_id ID of the network. Default is the current network.

Required

Return Value

(int)
Number of active sites on the network.

Function Information

Since Version
MU (3.0.0)
Source File
wp-includes/ms-functions.php
Advertisement