WordPress开发者和主题制作者的搜索引擎



refresh_user_details ›

Since3.0.0
已弃用n/a
refresh_user_details ( $id )
参数:
  • (int) $id The user ID.
    Required: Yes
返回:
  • (bool|int) The ID of the refreshed user or false if the user does not exist.
定义在:
文档:

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;
}