Core Function
View Source on Trac ↗ wp_count_sites()
wp_count_sites( mixed $network_id = null ) Counts number of sites grouped by site status.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $network_id int | Optional. The network to get counts for. Default is the current network ID. |
Return Value
(int[])
int[] {
Numbers of sites grouped by site status.
Function Information
Since Version
5.3.0
Source File
wp-includes/ms-blogs.php
Advertisement