On this page
wp_update_network_counts( int|null $network_id = null )
Updates the network-wide counts for the current network.
Parameters
$network_idint|null Optional-
ID of the network. Default is the current network.
Default:
null
Source
File: wp-includes/ms-functions.php. View all references
function wp_update_network_counts( $network_id = null ) {
wp_update_network_user_counts( $network_id );
wp_update_network_site_counts( $network_id );
}
Related
Uses
| Uses | Description |
|---|---|
| wp_update_network_user_counts() wp-includes/ms-functions.php | Updates the network-wide user count. |
| wp_update_network_site_counts() wp-includes/ms-functions.php | Updates the network-wide site count. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_update_network_counts