Clanbite Forums

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

Whether the viewer may read content in this forum.

public static

Class: Kernowdev\ClanbiteForums\Forums\Visibility

Parameters

$viewer_id (int) Required

WordPress user ID (0 = guest).

$forum (object) Required

Forum row (status should be checked separately for drafts).

Returns

bool

Defined in inc/Forums/Visibility.php