apply_filters( 'sports_bench_stats_player_row', $styles, $player, $team, $stat )
Type
Filters
Section
Stats
Outputs styles for the table body row for the stat leaders table
Parameters
- $styles, string, current styles for the row
- $player, Sports_Bench_Player object, the player object for the player this stat is for
- $team, Sports_Bench_Player object, the team object for the current player's team
- $stat, string, the stat this table is for
Returns
- string, the CSS styles for the row
Since: 1.5
Source: statistics.php, line 1488, 1507
Example
/** * Returns the styles for the players stats rows * * @param $styles, current styles for the row * * @param $player, the Player Class for the Player * * @param $team, the Team Class for the player's team * * @param $stat, the stat that's being shown * * @return string, the styles for the player's stat row * * @since 1.5 */ function sports_bench_stats_player_row_borders( $styles, $player, $team, $stat ) { return 'border-right: 5px solid ' . $team->team_primary_color . '; border-left: 5px solid ' . $team->team_primary_color . ';'; } add_filter( 'sports_bench_stats_player_row', 'sports_bench_stats_player_row_borders', 10, 4 );