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.

BasketballPlayer::get_points_average( $points, $games )

Gets the points per game average for a player.


  • int $points — The number of points scored.
  • int $games — The number of games played.


  • float — The points per game for the player.

Since: 2.0


  • /includes/classes/sports/basketball/basketball-player.php — 53