apply_filters( 'sports_bench_team_shortcode_recent_games', $html, $team, $schedule )
Type
Filters
Section
Shortcodes
Teams
Outputs the HTML for the recent games section of the team shortcode
Parameters
- $html, string, the current HTML for before the recent games section
- $team, Sports_Bench_Team object, the team object for the selected team
- $schedule, array, the recent schedule of games for a team
Returns
- string, the HTML to be outputted for the recent games section of the team shortcode
Since: 1.5
Source: shortcodes.php, line 64
Example
/** * Returns the html for the recent games table in the team shortcode * * @param string $html * * @param Sports_Bench_Team $team * * @param array $schedule * * @return string, html for the recent games table * * @since 1.5 */ function sports_bench_do_team_shortcode_recent_games( $html, $team, $schedule ) { $html .= '
' . __( 'Recent Results', 'sports-bench' ) . ' | '; $html .= '' . __( 'Score', 'sports-bench' ) . ' | '; $html .= ''; $html .= ' | |
---|---|---|---|
' . $opponent->get_team_photo( 'team-logo' ) . ' | '; $html .= '' . $location . $opponent->team_location . ' | '; $html .= '' . $score . ' | '; $html .= '' . $recap . ' | '; $html .= '