# Moderation::set_user_banned()

```php
set_user_banned( int $user_id, bool $ban ): void
```

## Parameters

- `$user_id` (int) User ID.
- `$ban` (bool) True to ban.

## Return

`void`
