diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php index d941ef61..6e3ab3e0 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php @@ -33,6 +33,9 @@ class SP_Meta_Box_Event_Performance { $has_checkboxes = true; else $has_checkboxes = false; + + // Get player number option + $numbers = 'yes' == get_option( 'sportspress_event_show_player_numbers', 'yes' ) ? true : false; // Get positions $positions = array(); @@ -57,7 +60,7 @@ class SP_Meta_Box_Event_Performance { // Check if individual mode $is_individual = get_option( 'sportspress_load_individual_mode_module', 'no' ) === 'yes' ? true : false; - self::tables( $post->ID, $stats, $labels, $columns, $teams, $has_checkboxes, $positions, $status, $formats, $order, $is_individual ); + self::tables( $post->ID, $stats, $labels, $columns, $teams, $has_checkboxes, $positions, $status, $formats, $order, $numbers, $is_individual ); } /** @@ -72,15 +75,15 @@ class SP_Meta_Box_Event_Performance { /** * Admin edit tables */ - public static function tables( $post_id, $stats = array(), $labels = array(), $columns = array(), $teams = array(), $has_checkboxes = false, $positions = array(), $status = true, $formats = array(), $order = array(), $is_individual = false ) { + public static function tables( $post_id, $stats = array(), $labels = array(), $columns = array(), $teams = array(), $has_checkboxes = false, $positions = array(), $status = true, $formats = array(), $order = array(), $numbers = true, $is_individual = false ) { $sections = get_option( 'sportspress_event_performance_sections', -1 ); if ( $is_individual ) { ?>