# clanbite_events_set_invited_user_ids()

Replace the invitations on an event and tell the people who were newly invited.

Only the owner's accepted friends can be invited, the owner cannot invite themselves, and an `only_me` event has no invitations.

```php
clanbite_events_set_invited_user_ids( int $event_id, int $owner_id, array $user_ids ): array
```

## Parameters

- `$event_id` (int) Event post ID.
- `$owner_id` (int) Owner (author) user ID.
- `$user_ids` (int[]) Wanted invitees.

## Return

`int[]` The user IDs invited just now (not before).

## Changelog

| Version | Description |
| --- | --- |
| 1.6.5 | Introduced |
