Enable selecting columns to use in league table
This commit is contained in:
@@ -128,6 +128,9 @@ function sportspress_save_post( $post_id ) {
|
||||
|
||||
case ( 'sp_table' ):
|
||||
|
||||
// Update columns array
|
||||
update_post_meta( $post_id, 'sp_columns', sportspress_array_value( $_POST, 'sp_columns', array() ) );
|
||||
|
||||
// Update teams array
|
||||
update_post_meta( $post_id, 'sp_teams', sportspress_array_value( $_POST, 'sp_teams', array() ) );
|
||||
|
||||
|
||||
@@ -100,9 +100,9 @@ function sportspress_table_team_meta( $post, $test ) {
|
||||
|
||||
function sportspress_table_columns_meta( $post ) {
|
||||
|
||||
list( $columns, $data, $placeholders, $merged ) = sportspress_get_league_table_data( $post->ID, true );
|
||||
list( $columns, $usecolumns, $data, $placeholders, $merged ) = sportspress_get_league_table_data( $post->ID, true );
|
||||
|
||||
sportspress_edit_league_table( $columns, $data, $placeholders );
|
||||
sportspress_edit_league_table( $columns, $usecolumns, $data, $placeholders );
|
||||
|
||||
sportspress_nonce();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user