Camping School Gear Type Tax
if ( ! function_exists( 'cs_register_gear_type_tax' ) ) {
// Register Custom Taxonomy
function cs_register_gear_type_tax() {
$labels = array(
'name' => 'Gear types',
'singular_name' => 'Gear type',
'menu_name' => 'Gear types',
'all_items' => 'All Gear types',
'parent_item' => 'Parent Gear type',
'parent_item_colon' => 'Parent Gear type:',
'new_item_name' => 'New Gear type',
'add_new_item' => 'Add New Gear type',
'edit_item' => 'Edit Gear type',
'update_item' => 'Update Gear type',
'view_item' => 'View Gear type',
'separate_items_with_commas' => 'Separate Gear types with commas',
'add_or_remove_items' => 'Add or remove Gear types',
'choose_from_most_used' => 'Choose from the most used',
'popular_items' => 'Popular Gear types',
'search_items' => 'Search Gear types',
'not_found' => 'Not Found',
'no_terms' => 'No Gear types',
'items_list' => 'Gear types list',
'items_list_navigation' => 'Gear types list navigation',
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'show_in_rest' => true,
);
register_taxonomy( 'gear-type', array( 'gear' ), $args );
}
add_action( 'init', 'cs_register_gear_type_tax', 0 );
}