wp_maybe_update_network_site_counts
wp_maybe_update_network_site_counts ( $network_id = null )
Parameters:- (int|null) network_id ID of the network. Default is the current network.
Defined at:Change Log: - Introduced in WordPress: 3.7.0
- Deprecated in WordPress: —
Description
Updates the count of sites for the current network.If enabled through the {@see 'enable_live_network_counts'} filter, update the sites count
on a network when a site is created or its status is updated.