Product Type – Taxonomy
Product Type – Taxonomy
if ( ! function_exists( 'brand_compatible' ) ) { // Register Custom Taxonomy function brand_compatible() { $labels = array( 'name' => _x( 'Brands Compatible', 'Taxonomy General Name', 'eon-techno' ), 'singular_name' => _x( 'Brand Compatible', 'Taxonomy Singular Name', 'eon-techno' ), 'menu_name' => __( 'Brand Compatible', 'eon-techno' ), 'all_items' => __( 'All Brands Compatible', 'eon-techno' ), 'parent_item' => __( 'Parent Brand Compatible', 'eon-techno' ), 'parent_item_colon' => __( 'Parent Brand Compatible:', 'eon-techno' ), 'new_item_name' => __( 'New Brand Compatible Name', 'eon-techno' ), 'add_new_item' => __( 'Add New Brand Compatible', 'eon-techno' ), 'edit_item' => __( 'Edit Brand Compatible', 'eon-techno' ), 'update_item' => __( 'Update Brand Compatible', 'eon-techno' ), 'view_item' => __( 'View Brand Compatible', 'eon-techno' ), 'separate_items_with_commas' => __( 'Separate Brand Compatible with commas', 'eon-techno' ), 'add_or_remove_items' => __( 'Add or remove Brand Compatible', 'eon-techno' ), 'choose_from_most_used' => __( 'Choose from the most used', 'eon-techno' ), 'popular_items' => __( 'Popular Brands Compatible', 'eon-techno' ), 'search_items' => __( 'Search Brands Compatible', 'eon-techno' ), 'not_found' => __( 'Not Found', 'eon-techno' ), 'no_terms' => __( 'No Brands Compatible', 'eon-techno' ), 'items_list' => __( 'Brands Compatible list', 'eon-techno' ), 'items_list_navigation' => __( 'Brands Compatible list navigation', 'eon-techno' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ); register_taxonomy( 'brand_compatible', array( 'product_catalog' ), $args ); } add_action( 'init', 'brand_compatible', 0 ); }