From 687fb252747f2808ee4150c736c4f587a3e45171 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 18 Sep 2015 11:16:04 +1000 Subject: [PATCH] Check for individual mode before adding template option --- modules/sportspress-template-selector.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/sportspress-template-selector.php b/modules/sportspress-template-selector.php index 0759a8d4..965e9463 100644 --- a/modules/sportspress-template-selector.php +++ b/modules/sportspress-template-selector.php @@ -73,7 +73,10 @@ class SportsPress_Template_Selector { * Add option to team post type. */ public function team_options( $options ) { - return $this->options( $options, 'team' ); + if ( apply_filters( 'sportspress_has_teams', true ) ) { + return $this->options( $options, 'team' ); + } + return $options; } /**