Preserve team meta key in additional players query
This commit is contained in:
@@ -146,7 +146,7 @@ class SP_Player_List extends SP_Secondary_Post {
|
||||
|
||||
$players = (array) get_posts( $args );
|
||||
|
||||
$players = apply_filters( 'sportspress_player_list_players', $players, $args, $team );
|
||||
$players = apply_filters( 'sportspress_player_list_players', $players, $args, $team, $team_key );
|
||||
|
||||
if ( $players && is_array( $players ) ) {
|
||||
foreach ( $players as $player ) {
|
||||
|
||||
Reference in New Issue
Block a user