Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

product tax for company

// Register Custom Taxonomy
function products() {

	$labels = array(
		'name'                       => _x( 'Типы продукции', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Тип продукции', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Типы продукции', 'text_domain' ),
		'all_items'                  => __( 'Все типы', 'text_domain' ),
		'parent_item'                => __( 'Родитель', 'text_domain' ),
		'parent_item_colon'          => __( 'Родитель:', 'text_domain' ),
		'new_item_name'              => __( 'Новый тип', 'text_domain' ),
		'add_new_item'               => __( 'Добавить новый', 'text_domain' ),
		'edit_item'                  => __( 'Изменить', 'text_domain' ),
		'update_item'                => __( 'Обновить', 'text_domain' ),
		'view_item'                  => __( 'Просмотреть', 'text_domain' ),
		'separate_items_with_commas' => __( 'Разделяйте запятыми', 'text_domain' ),
		'add_or_remove_items'        => __( 'Добавить или удалить', 'text_domain' ),
		'choose_from_most_used'      => __( 'Выберите из часто используемых', 'text_domain' ),
		'popular_items'              => __( 'Популярные', 'text_domain' ),
		'search_items'               => __( 'Посик', 'text_domain' ),
		'not_found'                  => __( 'Не найдено', 'text_domain' ),
		'no_terms'                   => __( 'Нет типов', 'text_domain' ),
		'items_list'                 => __( 'Список', 'text_domain' ),
		'items_list_navigation'      => __( 'Items list navigation', 'text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
	);
	register_taxonomy( 'products', array( 'company' ), $args );

}
add_action( 'init', 'products', 0 );