Change Statistic to Performance

This commit is contained in:
Brian Miyaji
2014-03-24 19:24:54 +11:00
parent 967e0729a1
commit 514e3d4da4
48 changed files with 284 additions and 277 deletions

View File

@@ -0,0 +1,22 @@
<?php
if ( !function_exists( 'sportspress_player_performance' ) ) {
function sportspress_player_performance( $id = null ) {
if ( ! $id )
$id = get_the_ID();
$leagues = get_the_terms( $id, 'sp_league' );
$output = '';
// Loop through performance for each league
if ( is_array( $leagues ) ):
foreach ( $leagues as $league ):
$output .= sportspress_player_league_performance( $league, $id );
endforeach;
endif;
return apply_filters( 'sportspress_player_performance', $output );
}
}