Clanbite

clanbite_teams_user_can_delete_team( int $team_id, ?int $user_id = null ): bool

Whether the user may permanently delete a team from the front-end manage screen.

Parameters

$team_id (int) Required

Team post ID.

$user_id (int|null) Optional

User ID, or null for the current user.

Default: null

Returns

bool False when Teams is inactive.

Defined in inc/extensions/teams/functions.php