Add custom filter, sportspress_player_list_data
Make it possible to filter SportsPress player list data
This commit is contained in:
@@ -55,7 +55,8 @@ $list = new SP_Player_List( $id );
|
|||||||
if ( isset( $columns ) && null !== $columns ):
|
if ( isset( $columns ) && null !== $columns ):
|
||||||
$list->columns = $columns;
|
$list->columns = $columns;
|
||||||
endif;
|
endif;
|
||||||
$data = $list->data( false, $leagues, $seasons, $team );
|
|
||||||
|
$data = apply_filters('sportspress_player_list_data', $list->data( false, $leagues, $seasons, $team ) , $id );
|
||||||
|
|
||||||
// The first row should be labels
|
// The first row should be labels
|
||||||
$labels = $data[0];
|
$labels = $data[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user