diff --git a/admin/templates/player-metrics.php b/admin/templates/player-metrics.php index 881bc1d6..7616df38 100644 --- a/admin/templates/player-metrics.php +++ b/admin/templates/player-metrics.php @@ -39,20 +39,16 @@ if ( !function_exists( 'sportspress_player_metrics' ) ) { $data[ __( 'Past Teams', 'sportspress' ) ] = implode( ', ', $teams ); endif; - $output = '
' . - '' . ''; - - $i = 0; + $output = '
' . + '
'; foreach( $data as $label => $value ): - $output .= '
'; - - $i++; + $output .= '
' . $label . '
' . $value . '
'; endforeach; - $output .= '' . '
' . $label . '' . $value . '
' . '
'; + $output .= ''; return apply_filters( 'sportspress_player_metrics', $output );