# clanbite_forums_user_can_edit_topic()

Whether the user may edit a topic (opening post metadata).

```php
clanbite_forums_user_can_edit_topic( int $user_id, object $topic ): bool
```

## Parameters

- `$user_id` (int) WordPress user ID.
- `$topic` (object) Topic row (`id`, `forum_id`, `author_id`, `status`, …).

## Return

`bool`
