cache_users()
cache_users( array $user_ids )
检索用户列表的信息以防止get_userdata()进行多个查询
Retrieve info for user lists to prevent multiple queries by get_userdata()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$user_ids | (array) | 必需 | 用户标识号列表 |
返回(Return)
无返回值
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-includes/pluggable.php:122 | 2 | 4 |
cache_users() 为WP2原创文章,链接:https://www.wp2.cn/functions/cache_users/