# Visibility::user_has_any_role()

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

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

## Parameters

- `$user_id` (int) User ID.
- `$slugs` (list<string>) Role slugs.

## Return

`bool`
