Remove sport taxonomy and improve equation selectors

This commit is contained in:
ThemeBoy
2013-11-27 17:31:35 +11:00
parent 68fa7f30d4
commit 388e5283b4
10 changed files with 105 additions and 125 deletions

View File

@@ -1,20 +0,0 @@
<?php
function sp_sport_term_init() {
$name = __( 'Sports', 'sportspress' );
$singular_name = __( 'Sport', 'sportspress' );
$lowercase_name = __( 'sport', 'sportspress' );
$object_type = array( 'sp_result', 'sp_outcome', 'sp_stat', 'sp_metric' );
$labels = sp_tax_labels( $name, $singular_name, $lowercase_name );
$args = array(
'label' => $name,
'labels' => $labels,
'public' => false,
'show_ui' => true,
'show_in_nav_menus' => false,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'sport' )
);
register_taxonomy( 'sp_sport', $object_type, $args );
}
add_action( 'init', 'sp_sport_term_init' );
?>