Codex

sports_bench_game_shortcode_info

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