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

Type

Filters

Section

Playoffs

Output styles for the table body row for a team in the playoff series

Parameters

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

Returns

  • string, the CSS styles for the row

Since: 1.5

Source: playoff-functions.php, line 506, 513

Example

/**
 * Returns the styles for the team row in the playoff section
 *
 * @param $styles, current styles for the team row
 *
 * @param $team, the Team Class for the current team
 *
 * @return string, styles for the row
 *
 * @since 1.5
 */
function sports_bench_playoff_team_row_styles( $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_playoff_team_row', 'sports_bench_playoff_team_row_styles', 10, 2 );