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.

apply_filters( 'sports_bench_game_preview', $html, $game, $away_team, $away_team_name, $away_record, $away_score, $home_team, $home_team_name, $home_record, $home_score )

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