Update modules and hooks

This commit is contained in:
Brian Miyaji
2018-05-02 18:39:41 +10:00
parent 1482d64b41
commit 6c4b1e981d
3 changed files with 27 additions and 1 deletions

View File

@@ -69,11 +69,17 @@ if ( is_array( $leagues ) ):
'data' => $player->data( $league->term_id, false, $section_id ),
'caption' => $caption,
'scrollable' => $scrollable,
'league_id' => $league->term_id,
);
if ( ! $show_teams ) {
$args['hide_teams'] = true;
}
sp_get_template( 'player-statistics-league.php', $args );
if ( has_action( 'sportspress_player_statistics_league_template' ) ) {
do_action( 'sportspress_player_statistics_league_template', $args );
} else {
sp_get_template( 'player-statistics-league.php', $args );
}
endforeach;
if ( $show_career_totals ) {