get_user_count()
最后更新于:2021-11-27 03:47:31
get_user_count( int|null$network_id=null)The number of active users in your installation.
参数
- $network_id
-
(int|null) (Optional) ID of the network. Default is the current network.
Default value: null
响应
(int) Number of active users on the network.
源文件
文件: gc-includes/ms-functions.php
function get_user_count( $network_id = null ) {
return get_network_option( $network_id, 'user_count' );
}