Clanbite Forums

user_has_any_role( int $user_id, array $slugs ): bool

Whether the user has any of the given role slugs (explicit roles only).

public static

Class: Kernowdev\ClanbiteForums\Forums\Visibility

Parameters

$user_id (int) Required

User ID.

$slugs (list<string>) Required

Role slugs.

Returns

bool

Defined in inc/Forums/Visibility.php