Clanbite Since 1.6.5
clanbite_events_set_invited_user_ids( int $event_id, int $owner_id, array $user_ids ): int[]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.
Parameters
$event_id(int) RequiredEvent post ID.
$owner_id(int) RequiredOwner (author) user ID.
$user_ids(int[]) RequiredWanted invitees.
Returns
int[] The user IDs invited just now (not before).
Defined in inc/events/functions.php
Changelog
| Version | Description |
|---|---|
| 1.6.5 | Introduced. |