apply_filters( 'sports_bench_game_event_row', $styles, $team )

Type

Filters

Section

Game Recap

Output styles for a team row in the game linescore table

Parameters

  • $styles, string, current styles for the row
  • $team, Sports_Bench_Team object, the team that this row is for

Returns

  • string, the CSS styles for the row

Since: 1.5

Source: display-functions.php, line 1012, 1055, 1128, 1160, 1181, 1210

Example

/**
 * Returns the styles for a row in the game info section of the game stats area
 *
 * @param $styles, current styles for the row
 *
 * @param $team, the Team Class for the current team
 *
 * @return string, styles for the row
 *
 * @since 1.5
 */
function sports_bench_game_info_row( $styles, $team ) {
	$styles = 'border-right: 5px solid ' . $team->team_primary_color . '; border-left: 5px solid ' . $team->team_primary_color . ';';
	return $styles;
}
add_filter( 'sports_bench_game_event_row', 'sports_bench_game_info_row', 10, 2 );