# Data_Access::user_can_delete_comment_row()

Whether a user may delete a comment: its author, whoever manages the post it is on, or a site administrator (moderation).

```php
user_can_delete_comment_row( object $comment, ?object $post_row, int $user_id ): bool
```

## Parameters

- `$comment` (object) Comment row.
- `$post_row` (object|null) Parent post row (loaded when null).
- `$user_id` (int) User ID.

## Return

`bool` 

## Changelog

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