Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

bds_vitri

if ( ! function_exists( 'bds_vitri' ) ) {

// Register Custom Taxonomy
function bds_vitri() {

	$labels = array(
		'name'                       => 'Vị trí',
		'singular_name'              => 'Vị trí',
		'menu_name'                  => 'Vị trí',
		'all_items'                  => 'Các vị trí',
		'parent_item'                => 'Cha',
		'parent_item_colon'          => 'Cha',
		'new_item_name'              => 'Vị trí mới',
		'add_new_item'               => 'Thêm vị trí',
		'edit_item'                  => 'Sửa',
		'update_item'                => 'Cập nhật',
		'view_item'                  => 'Xem',
		'separate_items_with_commas' => 'Separate items with commas',
		'add_or_remove_items'        => 'Add or remove items',
		'choose_from_most_used'      => 'Chọn vị trí phổ biến',
		'popular_items'              => 'Vị trí phổ biến',
		'search_items'               => 'Tìm',
		'not_found'                  => 'Không thấy',
		'no_terms'                   => 'Không có',
		'items_list'                 => 'Danh sách',
		'items_list_navigation'      => 'Danh sách bên',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'show_in_rest'               => false,
	);
	register_taxonomy( 'vi-tri', array( 'du-an' ), $args );

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

}