The codex has been updated for Sports Bench 2.0 which is slated for an early September release. This is to help those who have made their own customizations get ready for the 2.0 release which will be radically different from a code perspective. Learn more about the changes you can expect with the code in Sports Bench 2.0.

sports_bench_get_teams( $alphabetical = false, $active = true, $division_id = 0 )

Gets a list of teams.


  • 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.


  • array — List of teams.

Since: 2.0


  • /includes/functions/teams.php — 28