apply_filters( 'clanbite_player_event_invitees', int[] $allowed, int $event_id, int $owner_id )Filters who can be invited to a player event.
Filter PHP
Parameters
$allowed(int[])Friend user IDs that will be invited.
$event_id(int)Event post ID.
$owner_id(int)Owner user ID.
Example
add_filter( 'clanbite_player_event_invitees', function ( $allowed, $event_id, $owner_id ) {
// Change $allowed here.
return $allowed;
}, 10, 3 );Defined in inc/events/functions.php
Changelog
| Version | Description |
|---|---|
| 1.6.5 | Introduced. |