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.

Players::get_pitcher_losses( $player_id, $season )

Gets the number of losses for a pitcher.

Parameters

  • int $player_id — The id for the player.
  • string $season — The season to check for losses.

Returns

  • int — The number of losses for the player.

Since: 2.0

Source

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