# Data_Access::set_topic_closed()

Toggle topic closed state.

```php
set_topic_closed( int $topic_id, bool $close ): void
```

## Parameters

- `$topic_id` (int) Topic ID.
- `$close` (bool) True to close.

## Return

`void`
