# clanbite_social_kit_is_group_banned()

Check if user is banned from a group.

```php
clanbite_social_kit_is_group_banned( int $group_id, ?int $user_id = null ): bool
```

## Parameters

- `$group_id` (int) Group post ID.
- `$user_id` (int|null) User ID (defaults to current user).

## Return

`bool`
