Remove sport taxonomy and improve equation selectors
This commit is contained in:
@@ -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' );
|
||||
?>
|
||||
Reference in New Issue
Block a user