apply_filters( 'sports_bench_standings_team_row', $styles, $team_id )
Type
Filters
Section
Standings
Outputs styles for the table head row for the standings table
Parameters
- $styles, string, current styles for the row
- $team_id, integer, the team id for the current team
Returns
- string, the CSS styles for the row
Since: 1.5
Source: standings.php, line 493, 538, 601, 718, 842, 967, 1089, 1274, 1473
Example
/** * Returns the styles for the individual team row in the standings page table * * @param $styles, current styles for the team row * * @param $team_id, id of the team the row is for * * @return string, styles for the team row * * @since 1.5 */ function sports_bench_standings_page_table_row_styles( $styles, $team_id ) { $team = new Sports_Bench_team( (int)$team_id ); $styles = 'border-right: 5px solid ' . $team->team_primary_color . '; border-left: 5px solid ' . $team->team_primary_color . ';'; return $styles; } add_filter( 'sports_bench_standings_team_row', 'sports_bench_standings_page_table_row_styles', 10, 2 );