Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Woo Brand Tax (with pl_PL labels)

// Register Custom Taxonomy
function product_brand() {

	$labels = array(
		'name'                       => _x( 'Producenci', 'Taxonomy General Name', '_themename' ),
		'singular_name'              => _x( 'Producent', 'Taxonomy Singular Name', '_themename' ),
		'menu_name'                  => __( 'Producenci', '_themename' ),
		'all_items'                  => __( 'Wszyscy producenci', '_themename' ),
		'parent_item'                => __( '', '_themename' ),
		'parent_item_colon'          => __( '', '_themename' ),
		'new_item_name'              => __( 'Nazwa producenta', '_themename' ),
		'add_new_item'               => __( 'Dodaj nowego producenta', '_themename' ),
		'edit_item'                  => __( 'Edytuj producenta', '_themename' ),
		'update_item'                => __( '', '_themename' ),
		'view_item'                  => __( '', '_themename' ),
		'separate_items_with_commas' => __( '', '_themename' ),
		'add_or_remove_items'        => __( '', '_themename' ),
		'choose_from_most_used'      => __( '', '_themename' ),
		'popular_items'              => __( '', '_themename' ),
		'search_items'               => __( '', '_themename' ),
		'not_found'                  => __( '', '_themename' ),
		'no_terms'                   => __( '', '_themename' ),
		'items_list'                 => __( '', '_themename' ),
		'items_list_navigation'      => __( '', '_themename' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'brand', array( 'product' ), $args );

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