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) Required

Event post ID.

$owner_id (int) Required

Owner (author) user ID.

$user_ids (int[]) Required

Wanted invitees.

Returns

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

Defined in inc/events/functions.php

Changelog

VersionDescription
1.6.5Introduced.