# Visibility::user_can_view_forum()

Whether the viewer may read content in this forum.

```php
user_can_view_forum( int $viewer_id, object $forum ): bool
```

## Parameters

- `$viewer_id` (int) WordPress user ID (0 = guest).
- `$forum` (object) Forum row (`status` should be checked separately for drafts).

## Return

`bool`
