Check for individual mode before adding template option

This commit is contained in:
Brian Miyaji
2015-09-18 11:16:04 +10:00
parent fec6816ead
commit 687fb25274

View File

@@ -73,8 +73,11 @@ class SportsPress_Template_Selector {
* Add option to team post type.
*/
public function team_options( $options ) {
if ( apply_filters( 'sportspress_has_teams', true ) ) {
return $this->options( $options, 'team' );
}
return $options;
}
/**
* Add option to league table post type.