WordPress at a glance
function is not described

get_user_to_edit() WP 2.0.5

Retrieve user data and filter it.

No Hooks.

Return

WP_User/true/false. WP_User object on success, false on failure.

Usage

get_user_to_edit( $user_id );
$user_id(int) (required)
User ID.

Code of get user to edit: wp-admin/includes/user.php VER 5.0.3

<?php
function get_user_to_edit( $user_id ) {
	$user = get_userdata( $user_id );

	if ( $user )
		$user->filter = 'edit';

	return $user;
}