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; } /**