From e0a7d15d189b7d1239b3aabad09ab6fd81fa200d Mon Sep 17 00:00:00 2001 From: Kakoma Date: Wed, 1 Apr 2020 16:53:15 +0300 Subject: [PATCH] Add custom filter, sportspress_player_list_data Make it possible to filter SportsPress player list data --- templates/player-list.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/player-list.php b/templates/player-list.php index 9a85de6c..5e74c5a7 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -55,7 +55,8 @@ $list = new SP_Player_List( $id ); if ( isset( $columns ) && null !== $columns ): $list->columns = $columns; 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 $labels = $data[0];