Discipline
// Register Custom Taxonomy
function discipline_taxonomy() {
$labels = array(
'name' => _x( 'Disciplines', 'Taxonomy General Name', 'swing_fever_plugin' ),
'singular_name' => _x( 'Discipline', 'Taxonomy Singular Name', 'swing_fever_plugin' ),
'menu_name' => __( 'Disciplines', 'swing_fever_plugin' ),
'all_items' => __( 'All Disciplines', 'swing_fever_plugin' ),
'parent_item' => __( 'Parent Discipline', 'swing_fever_plugin' ),
'parent_item_colon' => __( 'Parent Discipline:', 'swing_fever_plugin' ),
'new_item_name' => __( 'New Discipline Name', 'swing_fever_plugin' ),
'add_new_item' => __( 'Add Discipline Item', 'swing_fever_plugin' ),
'edit_item' => __( 'Edit Discipline', 'swing_fever_plugin' ),
'update_item' => __( 'Update Discipline', 'swing_fever_plugin' ),
'separate_items_with_commas' => __( 'Separate Disciplines with commas', 'swing_fever_plugin' ),
'search_items' => __( 'Search Disciplines', 'swing_fever_plugin' ),
'add_or_remove_items' => __( 'Add or remove Disciplines', 'swing_fever_plugin' ),
'choose_from_most_used' => __( 'Choose from the most used Disciplines', 'swing_fever_plugin' ),
'not_found' => __( 'Not Found', 'swing_fever_plugin' ),
);
$rewrite = array(
'slug' => 'disciplina',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
'rewrite' => $rewrite,
);
register_taxonomy( 'discipline_taxonomy', array( 'scuola_type' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'discipline_taxonomy', 0 );