wp_count_sites ( $network_id = null )
- (int) $network_id The network to get counts for. Default is the current network id.
- (array) Includes a grand total 'all' and an array of counts indexed by status strings: public, archived, mature, spam, deleted.
- Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Count number of sites grouped by site status.