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