public function update(array $attributes = [])
    {
        $attributes = array_merge($attributes, ['ID' => $this->ID]);

        if (is_wp_error(wp_update_user($attributes))) {
            return false;
        }

        $this->setRawAttributes($attributes, true);

        return true;
    }
public function update(array $attributes = [])
    {
        $attributes = array_merge($attributes, ['ID' => $this->ID]);

        if (is_wp_error(wp_update_user($attributes))) {
            return false;
        }

        $this->setRawAttributes($attributes, true);

        return true;
    }
public function update ( array $ attributes = [ ] ) { $ attributes = array_merge ( $ attributes , [ 'ID' => $ this -> ID ] ) ; if ( is_wp_error ( wp_update_user ( $ attributes ) ) ) { return false ; } $ this -> setRawAttributes ( $ attributes , true ) ; return true ; }
Update the user properties.

@param array $attributes

@return bool|int
Update the user properties .