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_shortcode_info', $html, $game, $away_team, $away_team_name, $away_score, $home_team, $home_team_name, $home_score, $time_in_game, $location )

Displays the information about a game.

Parameters

  • string $html — The current HTML for the filter.
  • Game $game — The Game object for the game shortcode.
  • Team $away_team — The team object for the away team.
  • string $away_team_name — The name of the away team.
  • int $away_score — The score for the away team.
  • Team $home_team — The team object for the home team.
  • string $home_team_name — The name of the home team.
  • int $home_score — The score for the home team.
  • string $time_in_game — The current time of the game (or "FINAL" if the game is over).
  • string $location — The location of the game.

Returns

  • string — The HTML to show the information about the game.

Since: 2.0

Source

  • /blocks/class-sports-bench-blocks.php — 620
  • /public/partials/shortcodes/game.php — 102