apply_filters( 'sports_bench_rivalry_shortcode_info', $html, $team_one, $team_one_name, $team_two, $team_two_name, $series_score )
Type
Filters
Section
Shortcodes
Outputs the HTML for the rivarly information section of the rivalry shortcode
Parameters
- $html, string, the current HTML for before the rivarly information section of the rivalry shortcode
- $team_one, Sports_Bench_Team object, the team object for the first selected team
- $team_one_name, string, the team name of the first team
- $team_two, Sports_Bench_Team object, the team object for the second selected team
- $team_two_name, string, the team name of the first team
- $series_score, string, the score of the series between the two teams
Returns
- string, the HTML to be outputted before rivarly information section of the rivalry shortcode
Since: 1.5
Source: shortcodes.php, line 506
Example
function sports_bench_do_rivalry_shortcode_info( $html, $game, $team_one, $team_one_name, $team_two, $team_two_name, $series_score ) { $html .= '
' . $team_one->get_team_photo( 'team-logo' ) . ' | '; $html .= '' . $team_one_name . ' | '; $html .= '' . $series_score . ' | '; $html .= '' . $team_two_name . ' | '; $html .= '' . $team_two->get_team_photo( 'team-logo' ) . ' | '; $html .= '