Utility
// Register Custom Taxonomy
function utility_taxonomy() {
$labels = array(
'name' => _x( 'Tiện ích', 'Taxonomy General Name', 'real_estate' ),
'singular_name' => _x( 'Tiện ích', 'Taxonomy Singular Name', 'real_estate' ),
'menu_name' => __( 'Tiện Ích', 'real_estate' ),
'all_items' => __( 'Tất cả', 'real_estate' ),
'parent_item' => __( 'Parent Item', 'real_estate' ),
'parent_item_colon' => __( 'Parent Item:', 'real_estate' ),
'new_item_name' => __( 'Tạo mới', 'real_estate' ),
'add_new_item' => __( 'Thêm mới', 'real_estate' ),
'edit_item' => __( 'Chỉnh sửa', 'real_estate' ),
'update_item' => __( 'Cập nhập', 'real_estate' ),
'view_item' => __( 'Xem', 'real_estate' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'real_estate' ),
'add_or_remove_items' => __( 'Add or remove items', 'real_estate' ),
'choose_from_most_used' => __( 'Choose from the most used', 'real_estate' ),
'popular_items' => __( 'Popular Items', 'real_estate' ),
'search_items' => __( 'Tìm kiếm', 'real_estate' ),
'not_found' => __( 'Không tìm thấy', 'real_estate' ),
'no_terms' => __( 'Không có', 'real_estate' ),
'items_list' => __( 'Danh sách', 'real_estate' ),
'items_list_navigation' => __( 'Items list navigation', 'real_estate' ),
);
$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( 'utility', array( 'real_estate' ), $args );
}
add_action( 'init', 'utility_taxonomy', 0 );