Apply hooks to event details

This commit is contained in:
Brian Miyaji
2015-09-18 12:20:25 +10:00
parent ce879e88b2
commit a39a05830a
3 changed files with 4 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ class SP_Event extends SP_Custom_Post{
public function performance( $admin = false ) {
$teams = get_post_meta( $this->ID, 'sp_team', false );
$performance = (array)get_post_meta( $this->ID, 'sp_players', true );
$labels = sp_get_var_labels( 'sp_performance' );
$labels = apply_filters( 'sportspress_event_performance_labels', sp_get_var_labels( 'sp_performance' ), $this );
$columns = get_post_meta( $this->ID, 'sp_columns', true );
if ( is_array( $teams ) ):
foreach( $teams as $i => $team_id ):