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

  • List of teams.

Since: 2.0

Source

  • /includes/classes/base/class-teams.php — 52