bds
if ( ! function_exists('bds_manage') ) {
// Register Custom Post Type
function bds_manage() {
$labels = array(
'name' => 'Dự Án',
'singular_name' => 'Dự Án',
'menu_name' => 'Dự Án',
'name_admin_bar' => 'Dự Án',
'archives' => 'Dự án',
'attributes' => 'Dự án',
'parent_item_colon' => 'Dự án',
'all_items' => 'Các dự án',
'add_new_item' => 'Thêm dự án mới',
'add_new' => 'Thêm mới',
'new_item' => 'Dự án mới',
'edit_item' => 'Sửa',
'update_item' => 'Cập nhật',
'view_item' => 'Xem',
'view_items' => 'Xem',
'search_items' => 'Tìm',
'not_found' => 'Không thấy',
'not_found_in_trash' => 'Không có trang thùng rác',
'featured_image' => 'Ảnh đại diện',
'set_featured_image' => 'Đặt ảnh đại diện',
'remove_featured_image' => 'Bỏ ảnh đại diện',
'use_featured_image' => 'Dùng ảnh đại diện',
'insert_into_item' => 'Chèn',
'uploaded_to_this_item' => 'Tải lên',
'items_list' => 'Danh sách',
'items_list_navigation' => 'Danh sách bên',
'filter_items_list' => 'Lọc',
);
$args = array(
'label' => 'Dự Án',
'description' => 'Dự án',
'labels' => $labels,
'supports' => array( 'title', 'thumbnail', 'comments', 'trackbacks' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-building',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'query_var' => 'bds',
'capability_type' => 'page',
'show_in_rest' => false,
);
register_post_type( 'du-an', $args );
}
add_action( 'init', 'bds_manage', 0 );
}