partner_levels
// Register Custom Taxonomy
function custom_taxonomy() {
$labels = array(
'name' => _x( 'Partner Levels', 'Taxonomy General Name', 'joinweb' ),
'singular_name' => _x( 'Partner Level', 'Taxonomy Singular Name', 'joinweb' ),
'menu_name' => __( 'Partner Level', 'joinweb' ),
'all_items' => __( 'All Partner Levels', 'joinweb' ),
'parent_item' => __( 'Parent Partner Level', 'joinweb' ),
'parent_item_colon' => __( 'Parent Partner Level:', 'joinweb' ),
'new_item_name' => __( 'New Partner Level', 'joinweb' ),
'add_new_item' => __( 'Add New Partner Level', 'joinweb' ),
'edit_item' => __( 'Edit Partner Level', 'joinweb' ),
'update_item' => __( 'Update Partner Level', 'joinweb' ),
'separate_items_with_commas' => __( 'Separate Partner Levels with commas', 'joinweb' ),
'search_items' => __( 'Search Partner Levels', 'joinweb' ),
'add_or_remove_items' => __( 'Add or remove Partner Levels', 'joinweb' ),
'choose_from_most_used' => __( 'Choose from the most used Partner Levels', 'joinweb' ),
'not_found' => __( 'Not Found', 'joinweb' ),
);
$rewrite = array(
'slug' => 'partner_levels',
'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,
'query_var' => 'partner_level',
'rewrite' => $rewrite,
);
register_taxonomy( 'partner_level', array( 'partners' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_taxonomy', 0 );