wp_update_network_counts()
Updates the network-wide counts for the current network.
No Hooks.
Returns
null. Nothing (null).
Usage
wp_update_network_counts( $network_id );
- $network_id(int|null)
- ID of the network.
Default:current network
Changelog
| Since 3.1.0 | Introduced. |
| Since 4.8.0 | The $network_id parameter has been added. |
wp_update_network_counts() wp update network counts code WP 6.9.1
function wp_update_network_counts( $network_id = null ) {
wp_update_network_user_counts( $network_id );
wp_update_network_site_counts( $network_id );
}