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

Functions
Teams

Returns an array of teams.

Parameters

  • $alphabetical, boolean, optional, whether to list the teams in alphabetical order
  • $active, boolean, optional, whether to show only active teams or all teams
  • $division_id, integer, optional, the id for the division or conference to get the teams from. An id of 0 returns all teams

Returns

  • array, list of all of the teams in team_id => team_name pairs

Since: 1.0

Source: team-functions.php, line 29