apply_filters( 'sports_bench_before_team_shortcode', $html, $team )

Type

Filters

Section

Shortcodes
Teams

Outputs the HTML for before the team shortcode

Parameters

  • $html, string, the current HTML for before the team shortcode
  • $team, Sports_Bench_Team object, the team object for the selected team

Returns

  • string, the HTML to be outputted before the team shortcode

Since: 1.5

Source: shortcodes.php, line 57

Example

/**
 * Returns the html for the div for the top part of the team shortcode
 *
 * @param $html, current html for the section
 *
 * @param $team, the Team Class for the team
 *
 * @return string, html for the div
 *
 * @since 1.5
 */
function sports_bench_team_shortcode_head( $html, $team ) {
    $html .= '
'; return $html; } add_filter( 'sports_bench_before_team_shortcode', 'sports_bench_team_shortcode_head', 10, 2 );