sports_bench_get_teams

Gets a list of teams.

Parameters

  • bool $alphabetical — Whether the list should be alphabetical or not.
  • bool $active — Whether to only include active teams or all teams.
  • int $division_id — The id of the division to get teams from. Leave blank or use 0 to get all teams regardless of division.

Returns

  • array — List of teams.

Since: 2.0

Source

  • /includes/functions/teams.php — 28