Clanbite Forums REST

apply_filters( 'clanbite_forums_user_can_create_topic', bool $can, int $forum_id, int $user_id )

Whether the user may create a topic in this forum.

Filter PHP

Parameters

$can (bool)

Default from board policy and visibility (staff always allowed).

$forum_id (int)

Forum post table ID.

$user_id (int)

User ID.

Example

add_filter( 'clanbite_forums_user_can_create_topic', function ( $can, $forum_id, $user_id ) {
	// Change $can here.
	return $can;
}, 10, 3 );

Defined in inc/Rest/Rest_Controller.php