Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Product Brands

// Register Custom Taxonomy
function product_brand_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Бренды', 'Taxonomy General Name', 'shopkeeper' ),
		'singular_name'              => _x( 'Бренд', 'Taxonomy Singular Name', 'shopkeeper' ),
		'menu_name'                  => __( 'Бренд', 'shopkeeper' ),
		'all_items'                  => __( 'Все бренды', 'shopkeeper' ),
		'parent_item'                => __( 'Родительский бренд', 'shopkeeper' ),
		'parent_item_colon'          => __( 'Родительский бренд:', 'shopkeeper' ),
		'new_item_name'              => __( 'Новое Название Бренда', 'shopkeeper' ),
		'add_new_item'               => __( 'Добавить Новый Бренд', 'shopkeeper' ),
		'edit_item'                  => __( 'Редактировать Бренд', 'shopkeeper' ),
		'update_item'                => __( 'Обновить Бренд', 'shopkeeper' ),
		'view_item'                  => __( 'Перейти к бренду', 'shopkeeper' ),
		'separate_items_with_commas' => __( 'Разделите бренды с помощью запятой', 'shopkeeper' ),
		'add_or_remove_items'        => __( 'Добавить или удалить ренды', 'shopkeeper' ),
		'choose_from_most_used'      => __( 'Выбрать из наиболее часто используемых', 'shopkeeper' ),
		'popular_items'              => __( 'Популярные бренды', 'shopkeeper' ),
		'search_items'               => __( 'Поиск Брендов', 'shopkeeper' ),
		'not_found'                  => __( 'Не найдено', 'shopkeeper' ),
		'no_terms'                   => __( 'Нет брендов', 'shopkeeper' ),
		'items_list'                 => __( 'Список Брендов', 'shopkeeper' ),
		'items_list_navigation'      => __( 'Навигация по списку брендов', 'shopkeeper' ),
	);
	$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( 'product_brand', array( 'product' ), $args );

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