Clanbite

cleanup_team_membership_index_for_team_deletion( int $team_id, array $user_ids ): void

Remove this team from every affected user’s membership index (call after the team post is deleted).

protected

Class: Kernowdev\Clanbite\Extensions\Teams

Parameters

$team_id (int) Required

Team post ID (used as the key to remove from each user’s list).

$user_ids (array<int>) Required

Users to update (from get_user_ids_for_team_membership_cleanup() while the post existed).

Returns

void

Defined in inc/extensions/teams/class-extension-teams.php