wp_update_network_counts( int|null $network_id = null )

In this article

Updates the network-wide counts for the current network.

Parameters

$network_idint|nulloptional
ID of the network. Default is the current network.

Default:null

Source

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

Changelog

VersionDescription
4.8.0The $network_id parameter has been added.
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.