IKO > Product Types
WooCommerce taxonomy extension
// Register Custom Taxonomy function product_types() { $labels = array( 'name' => _x( 'Product Types', 'Taxonomy General Name', 'iko' ), 'singular_name' => _x( 'Product Type', 'Taxonomy Singular Name', 'iko' ), 'menu_name' => __( 'Product Types', 'iko' ), 'all_items' => __( 'All Product Types', 'iko' ), 'parent_item' => __( 'Parent Product Type', 'iko' ), 'parent_item_colon' => __( 'Parent Product Type:', 'iko' ), 'new_item_name' => __( 'New Product Type', 'iko' ), 'add_new_item' => __( 'Add New Product Type', 'iko' ), 'edit_item' => __( 'Edit Product Type', 'iko' ), 'update_item' => __( 'Update Product Type', 'iko' ), 'view_item' => __( 'View Product Type', 'iko' ), 'separate_items_with_commas' => __( 'Separate Product Types with commas', 'iko' ), 'add_or_remove_items' => __( 'Add or remove Product Types', 'iko' ), 'choose_from_most_used' => __( 'Choose from the Most Used', 'iko' ), 'popular_items' => __( 'Popular Product Types', 'iko' ), 'search_items' => __( 'Search Product Types', 'iko' ), 'not_found' => __( 'Not Found', 'iko' ), 'no_terms' => __( 'No Product Types', 'iko' ), 'items_list' => __( 'Product Types list', 'iko' ), 'items_list_navigation' => __( 'Product Types list navigation', 'iko' ), ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'show_in_rest' => true, ); register_taxonomy( 'product_types', array( 'product' ), $args ); } add_action( 'init', 'product_types', 0 );