# clanbite_forums_user_can_edit_topic

Filters whether a user may edit a forum topic via the REST API / block UI.

```php
apply_filters( 'clanbite_forums_user_can_edit_topic', bool $can, int $user_id, object $topic )
```

## Parameters

- `$can` (bool) Whether editing is allowed (core checks already applied).
- `$user_id` (int) Editor user ID.
- `$topic` (object) Topic row from the database.
