Instrument Tax
if ( ! function_exists( 'download_instrument_taxonomy' ) ) {
// Register Custom Taxonomy
function download_instrument_taxonomy() {
$labels = array(
'name' => _x( 'Instruments', 'Taxonomy General Name', 'musik' ),
'singular_name' => _x( 'Instrument', 'Taxonomy Singular Name', 'musik' ),
'menu_name' => __( 'Instruments', 'musik' ),
'all_items' => __( 'All Items', 'musik' ),
'parent_item' => __( 'Parent Instrument', 'musik' ),
'parent_item_colon' => __( 'Parent Instrument:', 'musik' ),
'new_item_name' => __( 'New Instrument', 'musik' ),
'add_new_item' => __( 'Add Instrument', 'musik' ),
'edit_item' => __( 'Edit Instrument', 'musik' ),
'update_item' => __( 'Update Instrument', 'musik' ),
'view_item' => __( 'View Instrument', 'musik' ),
'separate_items_with_commas' => __( 'Separate instruments with commas', 'musik' ),
'add_or_remove_items' => __( 'Add or remove instruments', 'musik' ),
'choose_from_most_used' => __( 'Choose from the most instruments', 'musik' ),
'popular_items' => __( 'Popular Instruments', 'musik' ),
'search_items' => __( 'Search Instruments', 'musik' ),
'not_found' => __( 'Not Found', 'musik' ),
'no_terms' => __( 'No instruments', 'musik' ),
'items_list' => __( 'Instruments list', 'musik' ),
'items_list_navigation' => __( 'Instruments list navigation', 'musik' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'download_instrument', array( 'download' ), $args );
}
add_action( 'init', 'download_instrument_taxonomy', 0 );
}