Change Leagues (sp_league) to Seasons (sp_season)

This commit is contained in:
Brian Miyaji
2014-01-04 19:55:58 +11:00
parent 6cf7e5b77e
commit 997226195d
13 changed files with 123 additions and 51 deletions

View File

@@ -1,8 +1,8 @@
<?php
function sp_league_term_init() {
$name = __( 'Leagues', 'sportspress' );
$singular_name = __( 'League', 'sportspress' );
$lowercase_name = __( 'leagues', 'sportspress' );
function sp_season_term_init() {
$name = __( 'Seasons', 'sportspress' );
$singular_name = __( 'Season', 'sportspress' );
$lowercase_name = __( 'season', 'sportspress' );
$object_type = array( 'sp_team', 'sp_event', 'sp_player', 'sp_staff' );
$labels = sp_tax_labels( $name, $singular_name, $lowercase_name );
$args = array(
@@ -12,7 +12,7 @@ function sp_league_term_init() {
'hierarchical' => true,
'rewrite' => array( 'slug' => 'league' )
);
register_taxonomy( 'sp_league', $object_type, $args );
register_taxonomy( 'sp_season', $object_type, $args );
}
add_action( 'init', 'sp_league_term_init' );
add_action( 'init', 'sp_season_term_init' );
?>