Documentation

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_goals_against_average( $goals_allowed, $games_played )

Returns the goals against average for a player.

Parameters

  • int $goals_allowed — The number of goals allowed.
  • int $games_played — The number of games/matches played.

Returns

  • string — The goals against average.

Since: 2.0

Source

  • /includes/functions/players.php — 27