Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Ladoga production

// Register Custom Taxonomy
function products_cats() {

	$labels = array(
		'name'                       => 'Разделы',
		'singular_name'              => 'Разделы',
		'menu_name'                  => 'Разделы',
		'all_items'                  => 'Все разделы',
		'parent_item'                => 'Parent Item',
		'parent_item_colon'          => 'Parent Item:',
		'new_item_name'              => 'Новый раздел',
		'add_new_item'               => 'Добавить раздел',
		'edit_item'                  => 'Редактировать раздел',
		'update_item'                => 'Обновить раздел',
		'view_item'                  => 'Посмотреть раздел',
		'separate_items_with_commas' => 'Разделитель - запятая',
		'add_or_remove_items'        => 'Добавить или удалить раздел',
		'choose_from_most_used'      => 'Выбрать из самых используемых',
		'popular_items'              => 'Популярные разделы',
		'search_items'               => 'Найти',
		'not_found'                  => 'Не найдено.',
		'no_terms'                   => 'Такого здесь нет.',
		'items_list'                 => 'Список разделов',
		'items_list_navigation'      => 'Items 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,
	);
	register_taxonomy( 'products', array( 'product' ), $args );

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