refresh_user_details

函数


refresh_user_details ( $id )
参数
  • (int)
    $id
    The user ID.
    Required:
返回值
  • (int|false) The ID of the refreshed user or false if the user does not exist.
定义位置
  • wp-admin/includes/ms.php
    , line 322
引入
3.0.0
弃用

Cleans the user cache for a specific user.

function refresh_user_details( $id ) {
	$id = (int) $id;

	$user = get_userdata( $id );
	if ( ! $user ) {
		return false;
	}

	clean_user_cache( $user );

	return $id;
}