# Data_Access::user_can_edit_comment_row()

Whether a user may edit a comment: its author.

Editing stays with the author (as for posts, where site administrators can remove but not rewrite what others wrote).

```php
user_can_edit_comment_row( object $comment, int $user_id ): bool
```

## Parameters

- `$comment` (object) Comment row.
- `$user_id` (int) User ID.

## Return

`bool` 

## Changelog

| Version | Description |
| --- | --- |
| 1.6.2 | Introduced |
