Codex

sports_bench_game_preview

Displays the game preview.

Parameters

  • string $html — The incoming HTML for the preview section.
  • Game $game — The game object for the game.
  • Team $away_team — The away team object.
  • string $away_team_name — The name of the away team.
  • string $away_record — The record for the away team.
  • int $away_score — The score for the away team.
  • Team $home_team — The home team object.
  • string $home_team_name — The name of the home team.
  • string $home_record — The record for the home team.
  • int $home_score — The score for the home team.

Returns

  • string — The HTML for the game preview.

Since: 2.0

Source

  • /includes/classes/base/class-games.php — 307