Add filters to convert statistic slugs to alphabetic strings
This commit is contained in:
@@ -10,7 +10,7 @@ function sp_div_term_init() {
|
||||
'labels' => $labels,
|
||||
'public' => true,
|
||||
'hierarchical' => true,
|
||||
'rewrite' => array( 'slug' => 'division' ),
|
||||
'rewrite' => array( 'slug' => 'division' )
|
||||
);
|
||||
register_taxonomy( 'sp_div', $object_type, $args );
|
||||
}
|
||||
|
||||
@@ -3,12 +3,14 @@ function sp_sport_term_init() {
|
||||
$name = __( 'Sports', 'sportspress' );
|
||||
$singular_name = __( 'Sport', 'sportspress' );
|
||||
$lowercase_name = __( 'sport', 'sportspress' );
|
||||
$object_type = array( 'sp_stat', 'sp_metric' );
|
||||
$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' => true,
|
||||
'public' => false,
|
||||
'show_ui' => true,
|
||||
'show_in_nav_menus' => false,
|
||||
'hierarchical' => true,
|
||||
'rewrite' => array( 'slug' => 'sport' )
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user