edit_user() – Edit user settings based on contents of $_POST
You appear to be a bot. Output may be restricted
Description
Edit user settings based on contents of $_POST
Used on user-edit.php and profile.php to manage and process user options, passwords etc.
Usage
$int|WP_Error = edit_user( $user_id );
Parameters
- $user_id
- ( int ) optional – Optional. User ID.
Returns
int|WP_Error User ID of the updated user or WP_Error on failure.
Source
File name: wordpress/wp-admin/includes/user.php