Clanbite Forums

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

Whether the user may create new topics in this forum.

Site forums managers and assigned forum moderators may always post. Private policy uses 'clanbite_forums_user_can_post_topic' for other users (same pattern as private read access).

public static

Class: Kernowdev\ClanbiteForums\Forums\Visibility

Parameters

$viewer_id (int) Required

WordPress user ID (0 = guest).

$forum (object) Required

Forum row.

Returns

bool

Defined in inc/Forums/Visibility.php