Clanbite Forums Forums

apply_filters( 'clanbite_forums_user_is_banned', bool $banned, int $user_id )

Filters whether a user is banned from Clanbite forums posting.

Filter PHP

Parameters

$banned (bool)

Whether banned (meta is 1).

$user_id (int)

User ID.

Example

add_filter( 'clanbite_forums_user_is_banned', function ( $banned, $user_id ) {
	// Change $banned here.
	return $banned;
}, 10, 2 );

Defined in inc/Forums/Moderation.php