$user=get_user_by('id',$user_id);$fields_update=$this->update_additional_fields_for_object($user,$request);if(is_wp_error($fields_update)){return$fields_update;}$request->set_param('context','edit');/** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php */do_action('rest_after_insert_user',$user,$request,false);$response=$this->prepare_item_for_response($user,$request);$response=rest_ensure_response($response);return$response;}/***Checksifagivenrequesthasaccesstoupdatethecurrentuser.