WordPress at a glance
function is not described

wp_update_network_counts() WP 3.1.0

Update the network-wide counts for the current network.

  • Since 4.8.0 The $network_id parameter has been added.

No Hooks.


Nothing (null).


wp_update_network_counts( $network_id );
ID of the network.
Default: current network

Code of wp update network counts: wp-includes/ms-functions.php WP 5.2.2

function wp_update_network_counts( $network_id = null ) {
	wp_update_network_user_counts( $network_id );
	wp_update_network_site_counts( $network_id );