WPDev.one
Core Function
View Source on Trac ↗

wp_maybe_update_user_counts()

wp_maybe_update_user_counts( mixed $network_id = null )

Updates the total count of users on the site if live user counting is enabled.

Parameters 1 required

Name / Type Description
(int

| null) $network_id ID of the network. Defaults to the current network.

Required

Return Value

(bool)
Whether the update was successful.

Function Information

Since Version
6.0.0
Source File
wp-includes/user.php
Advertisement