wp_maybe_update_network_site_counts_on_update
wp_maybe_update_network_site_counts_on_update ( $new_site, $old_site = null )
Parameters:- (WP_Site) new_site The site object that has been inserted, updated or deleted.
- (WP_Site|null) old_site Optional. If $new_site has been updated, this must be the previous state of that site. Default null.
Defined at: - Introduced in WordPress: 5.1.0
- Deprecated in WordPress: —
Description
Updates the count of sites for a network based on a changed site.