wp_update_network_user_counts()
Updates the network-wide user count.
No Hooks.
Returns
null. Nothing (null).
Usage
wp_update_network_user_counts( $network_id );
- $network_id(int|null)
- ID of the network.
Default:current network
Changelog
| Since 3.7.0 | Introduced. |
| Since 4.8.0 | The $network_id parameter has been added. |
| Since 6.0.0 | This function is now a wrapper for wp_update_user_counts(). |
wp_update_network_user_counts() wp update network user counts code WP 7.0
function wp_update_network_user_counts( $network_id = null ) {
wp_update_user_counts( $network_id );
}