Clanbite Teams

apply_filters( 'clanbite_team_roster_user_ids', list<int> $ids, int $team_id, bool $exclude_banned )

Filter roster user IDs before rendering a team player loop.

Filter PHP

Parameters

$ids (list<int>)

Ordered user IDs.

$team_id (int)

Team post ID.

$exclude_banned (bool)

Whether banned members were omitted.

Example

add_filter( 'clanbite_team_roster_user_ids', function ( $ids, $team_id, $exclude_banned ) {
	// Change $ids here.
	return $ids;
}, 10, 3 );

Defined in inc/extensions/teams/functions.php