Codex

get_shooting_average

Gets the shooting average for a player.

Parameters

  • int $made — The number of made shots.
  • int $attempts — The number of shot attempts.

Returns

  • float|string — The shooting averate for the player.

Since: 2.0

Source

  • /includes/classes/base/class-players.php — 144