refresh_user_details()
最后更新于:2021-11-27 21:12:28
refresh_user_details( int$id)Cleans the user cache for a specific user.
参数
- $id
-
(int) (Required) The user ID.
响应
(int|false) The ID of the refreshed user or false if the user does not exist.
源文件
文件: gc-admin/includes/ms.php
function refresh_user_details( $id ) {
$id = (int) $id;
$user = get_userdata( $id );
if ( ! $user ) {
return false;
}
clean_user_cache( $user );
return $id;
}