Uses
Uses | Description |
---|---|
wp-includes/option.php: get_network_option() | Retrieves a network’s option value based on the option name. |
The number of active users in your installation.
The count is cached and updated twice daily. This is not a live count.
(int|null) (Optional) ID of the network. Default is the current network.
Default value: null
(int) Number of active users on the network.
File: wp-includes/ms-functions.php
function get_user_count( $network_id = null ) { return get_network_option( $network_id, 'user_count' ); }
Version | Description |
---|---|
MU (3.0.0) | MU (3.0.0) |
4.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_user_count