apply_filters( 'sports_bench_scoreboard_bar_row_styles', $styles, $team )
Type
Filters
Section
Scoreboard
Output styles for the table body row for a team in the scoreboard game
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: scoreboard.php, line 565, 571
Example
/** * Returns the styles for the team row in the Sports Bench Scoreboard Bar * * @param $styles, the current styles for the row * * @param $team, the Team Class for the Team being shown * * @return string, the styles for the team row * * @since 1.5 */ function sports_bench_scoreboard_bar_team_borders( $styles, $team ) { return 'border-right: 5px solid ' . $team->team_primary_color . ';'; } add_filter( 'sports_bench_scoreboard_bar_row_styles', 'sports_bench_scoreboard_bar_team_borders', 10, 2 );