Add filters to convert statistic slugs to alphabetic strings
This commit is contained in:
@@ -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