Challenge Types Taxonomy
// Register Custom Taxonomy
function rh_challenge_type_function() {
$labels = array(
'name' => _x( 'Challenge Types', 'Taxonomy General Name', 'rising_heroes' ),
'singular_name' => _x( 'Challenge Type', 'Taxonomy Singular Name', 'rising_heroes' ),
'menu_name' => __( 'Challenge Type', 'rising_heroes' ),
'all_items' => __( 'Challenge Types', 'rising_heroes' ),
'parent_item' => __( 'Parent Item', 'rising_heroes' ),
'parent_item_colon' => __( 'Parent Item:', 'rising_heroes' ),
'new_item_name' => __( 'New Item Name', 'rising_heroes' ),
'add_new_item' => __( 'Add New Item', 'rising_heroes' ),
'edit_item' => __( 'Edit Item', 'rising_heroes' ),
'update_item' => __( 'Update Item', 'rising_heroes' ),
'view_item' => __( 'View Item', 'rising_heroes' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'rising_heroes' ),
'add_or_remove_items' => __( 'Add or remove items', 'rising_heroes' ),
'choose_from_most_used' => __( 'Choose from the most used', 'rising_heroes' ),
'popular_items' => __( 'Popular Items', 'rising_heroes' ),
'search_items' => __( 'Search Items', 'rising_heroes' ),
'not_found' => __( 'Not Found', 'rising_heroes' ),
'no_terms' => __( 'No items', 'rising_heroes' ),
'items_list' => __( 'Items list', 'rising_heroes' ),
'items_list_navigation' => __( 'Items list navigation', 'rising_heroes' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => false,
'show_tagcloud' => true,
);
register_taxonomy( 'challenge_type', array( 'challenge' ), $args );
}
add_action( 'init', 'rh_challenge_type_function', 0 );