apply_filters( 'sports_bench_rivalry_shortcode_info', $html, $team_one, $team_one_name, $team_two, $team_two_name, $series_score )

Type

Filters

Section

Shortcodes

Outputs the HTML for the rivarly information section of the rivalry shortcode

Parameters

  • $html, string, the current HTML for before the rivarly information section of the rivalry shortcode
  • $team_one, Sports_Bench_Team object, the team object for the first selected team
  • $team_one_name, string, the team name of the first team
  • $team_two, Sports_Bench_Team object, the team object for the second selected team
  • $team_two_name, string, the team name of the first team
  • $series_score, string, the score of the series between the two teams

Returns

  • string, the HTML to be outputted before rivarly information section of the rivalry shortcode

Since: 1.5

Source: shortcodes.php, line 506

Example

function sports_bench_do_rivalry_shortcode_info( $html, $game, $team_one, $team_one_name, $team_two, $team_two_name, $series_score ) {
	$html .= '';
	$table_row_styles = apply_filters( 'sports_bench_rivalry_shortcode_top_row', '', $game->game_id, $team_one, $team_two );
	$html .= '';
	$html .= '';
	$html .= '';
	$html .= '';
	$html .= '';
	$html .= '';
	$html .= '';
	$html .= '
' . $team_one_name . '' . $series_score . '' . $team_two_name . '
'; return $html; } add_filter( 'sports_bench_rivalry_shortcode_info', 'sports_bench_do_rivalry_shortcode_info', 10, 7 );