Clanbite Forums REST

apply_filters( 'clanbite_forums_user_can_reply', bool $can, int $topic_id, int $user_id, object $topic_row )

Whether the user may reply to this topic.

Filter PHP

Parameters

$can (bool)

Default from topic reply policy (staff always allowed).

$topic_id (int)

Topic ID.

$user_id (int)

User ID.

$topic_row (object)

Topic row.

Example

add_filter( 'clanbite_forums_user_can_reply', function ( $can, $topic_id, $user_id, $topic_row ) {
	// Change $can here.
	return $can;
}, 10, 4 );

Defined in inc/Rest/Rest_Controller.php