wp_maybe_update_user_counts
wp_maybe_update_user_counts ( $network_id = null )
Parameters:- (int|null) network_id ID of the network. Defaults to the current network.
Returns:- (bool) Whether the update was successful.
Defined at: - Introduced in WordPress: 6.0.0
- Deprecated in WordPress: —
Description
Updates the total count of users on the site if live user counting is enabled.