apply_filters( 'sports_bench_team_shortcode_upcoming_games', $html, $team, $schedule )
Type
Filters
Section
Shortcodes
Teams
Outputs the HTML for the upcoming games section of the team shortcode
Parameters
- $html, string, the current HTML for before the upcoming games section
- $team, Sports_Bench_Team object, the team object for the selected team
- $schedule, array, the upcoming schedule of games for a team
Returns
- string, the HTML to be outputted for the upcoming games section of the team shortcode
Since: 1.5
Source: shortcodes.php, line 68
Example
/** * Returns the html for the upcoming games table in the team shortcode * * @param string $html * * @param Sports_Bench_Team $team * * @param array $schedule * * @return string, html for the upcoming games table * * @since 1.5 */ function sports_bench_do_team_shortcode_upcoming_games( $html, $team, $schedule ) { $html .= '
' . __( 'Upcoming Games', 'sports-bench' ) . ' | '; $html .= '' . __( 'Date', 'sports-bench' ) . ' | '; $html .= '|
---|---|---|
' . $opponent->get_team_photo( 'team-logo' ) . ' | '; $html .= '' . $location . $opponent->team_location . ' | '; $html .= '' . date( 'g:i a, M j', $date ) . ' | '; $html .= '