WordPress: how to rename / rewrite taxonomy name

I have created following taxonomy in wordpress function:

add_action( 'init', 'create_book_tax' );

function create_book_tax() {
register_taxonomy(
    'site_players',//taxonomy name
    array( 'milan','manu),//CP name
    array(
        'label' => __( 'Players' ),
        'rewrite' => array( 'slug' => 'players' ),
        'hierarchical' => true,
        'show_in_nav_menus'    => true,
        'show_admin_column'    => true,
    )
);


 }


 add_action( 'init', 'codex_custom_init' );

Now I need to rename it or better to rewrite it changing the name into site_no_players.
There is a way to do it in WP?

Related posts

Leave a Reply