get_user_count()
get_user_count( int|null $network_id = null ) 安装中的活动用户数…
get_user_count( int|null $network_id = null )
安装中的活动用户数。
The number of active users in your installation.
安装中的活动用户数。
The number of active users in your installation.
目录锚点:#说明#参数#返回#源码
说明(Description)
每天缓存和更新两次计数。这不是现场清点。
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $network_id | (int | null) | 可选 | 网络的ID。默认为当前网络。 |
返回(Return)
(int)网络上的活动用户数。
源码(Source)
/**
* The number of active users in your installation.
*
* The count is cached and updated twice daily. This is not a live count.
*
* @since MU 2.7
*
* @return int
*/
function get_user_count() {
return get_site_option( 'user_count' );
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| MU (3.0.0) | wp-includes/ms-functions.php:114 | 6 | 1 function |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!