edit_user
edit_user ( $user_id = 0 )
Parameters:- (int) user_id Optional. User ID.
Returns:- (int|WP_Error) User ID of the updated user or WP_Error on failure.
Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Edit user settings based on contents of $_POSTUsed on user-edit.php and profile.php to manage and process user options, passwords etc.