Codex

One of the best parts of Sports Bench is the ways in which you can customize what appears where on your website and how it looks. Of course, with a plugin that does a lot, there are a lot of different functions, variables, classes and database columns at your disposal. To help you do awesome things with the plugin, I’ve created this codex to define every available class, function and database column at your disposal. That way you spend more time being creative and less time worrying about what does what. Have fun customizing!

get_age

Returns the current age of a player.

get_alltime_draws

Returns the number of all-time draws for a team.

get_alltime_losses

Returns the number of all-time losses for a team.

get_alltime_record

Returns the all-time record for a team as an array.

get_alltime_wins

Returns the number of all-time wins for a team.

get_average_attendance

Returns the average attendance for a team for a season.

get_conference_draws

Returns number of draws in the conference for a team in a season.

get_conference_losses

Returns number of losses in the conference for a team in a season.

get_conference_record

Returns the conference record for a team as an array.

get_conference_wins

Returns number of wins in the conference for a team in a season.

get_division_draws

Returns number of draws in the division for a team in a season.

get_division_losses

Returns number of losses in the division for a team in a season.