Biscup: Treatment Type Taxonomy
// Register Custom Taxonomy
function taxonomy_treatment_types() {
$labels = array(
'name' => _x( 'Treatment Types', 'Taxonomy General Name', 'biscup-spine-theme' ),
'singular_name' => _x( 'Treatment Type', 'Taxonomy Singular Name', 'biscup-spine-theme' ),
'menu_name' => __( 'Treatment Type', 'biscup-spine-theme' ),
'all_items' => __( 'All Treatment Types', 'biscup-spine-theme' ),
'parent_item' => __( 'Parent Treatment Type', 'biscup-spine-theme' ),
'parent_item_colon' => __( 'Parent Treatment Type:', 'biscup-spine-theme' ),
'new_item_name' => __( 'New Treatment Type Name', 'biscup-spine-theme' ),
'add_new_item' => __( 'Add New Treatment Type', 'biscup-spine-theme' ),
'edit_item' => __( 'Edit Treatment Type', 'biscup-spine-theme' ),
'update_item' => __( 'Update Treatment Type', 'biscup-spine-theme' ),
'view_item' => __( 'View Treatment Type', 'biscup-spine-theme' ),
'separate_items_with_commas' => __( 'Separate Treatment Types with commas', 'biscup-spine-theme' ),
'add_or_remove_items' => __( 'Add or remove Treatment Types', 'biscup-spine-theme' ),
'choose_from_most_used' => __( 'Choose from the most used', 'biscup-spine-theme' ),
'popular_items' => __( 'Popular Treatment Types', 'biscup-spine-theme' ),
'search_items' => __( 'Search Treatment Types', 'biscup-spine-theme' ),
'not_found' => __( 'Not Found', 'biscup-spine-theme' ),
'no_terms' => __( 'No Treatment Types', 'biscup-spine-theme' ),
'items_list' => __( 'Treatment Types list', 'biscup-spine-theme' ),
'items_list_navigation' => __( 'Treatment Types list navigation', 'biscup-spine-theme' ),
);
$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( 'treatment-types', array( 'treatments' ), $args );
}
add_action( 'init', 'taxonomy_treatment_types', 0 );