Clanbite Forums

user_can_reply_in_topic( int $viewer_id, object $topic, object $forum ): bool

Whether the user may post a reply in this topic.

Site forums managers and assigned forum moderators may always reply. Topic policy self::VIS_AUTHOR_MODS limits replies to the topic author and staff. Private denies other users (extend via 'clanbite_forums_user_can_reply' at the REST layer).

public static

Class: Kernowdev\ClanbiteForums\Forums\Visibility

Parameters

$viewer_id (int) Required

WordPress user ID (0 = guest).

$topic (object) Required

Topic row.

$forum (object) Required

Forum row for the topic.

Returns

bool

Defined in inc/Forums/Visibility.php