Change div to league and pos to position
This commit is contained in:
18
admin/terms/league.php
Normal file
18
admin/terms/league.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
function sp_league_term_init() {
|
||||
$name = __( 'Leagues', 'sportspress' );
|
||||
$singular_name = __( 'League', 'sportspress' );
|
||||
$lowercase_name = __( 'leagues', 'sportspress' );
|
||||
$object_type = array( 'sp_team', 'sp_event', 'sp_player', 'sp_staff' );
|
||||
$labels = sp_tax_labels( $name, $singular_name, $lowercase_name );
|
||||
$args = array(
|
||||
'label' => $name,
|
||||
'labels' => $labels,
|
||||
'public' => true,
|
||||
'hierarchical' => true,
|
||||
'rewrite' => array( 'slug' => 'league' )
|
||||
);
|
||||
register_taxonomy( 'sp_league', $object_type, $args );
|
||||
}
|
||||
add_action( 'init', 'sp_league_term_init' );
|
||||
?>
|
||||
Reference in New Issue
Block a user