Function: get_user_to_edit

get_user_to_edit( integer $user_id )

Retrieve user data and filter it.

Parameters

Name Type(s) Default Value Description
$user_id integer

User ID.

Returns

WP_User | boolean

WP_User object on success, false on failure.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.