Uses
Uses | Description |
---|---|
wp-includes/ms-functions.php: wp_maybe_update_network_site_counts() | Update the count of sites for the current network. |
Updates the count of sites for a network based on a changed site.
File: wp-includes/ms-site.php
function wp_maybe_update_network_site_counts_on_update( $new_site, $old_site = null ) { if ( null === $old_site ) { wp_maybe_update_network_site_counts( $new_site->network_id ); return; } if ( $new_site->network_id != $old_site->network_id ) { wp_maybe_update_network_site_counts( $new_site->network_id ); wp_maybe_update_network_site_counts( $old_site->network_id ); } }
Version | Description |
---|---|
5.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_maybe_update_network_site_counts_on_update