Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

example: Querying menus for themes with no menu locations

Đang mở
#88 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
documentation

Hướng nghiên cứu

Start with the menus documentation at https://www.wpgraphql.com/docs/menus and the existing example query in this issue. Then inspect the repository's example area to determine how an example plugin can support themes without menu locations. Done means the examples demonstrate how to query menus for those themes and the documented query returns useful results.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

topic:menus type:docs type:feat

Background

If you try and query for any type of menu when building an example for some of the latest WP themes (e.g. Twenty Twenty Five) they don't have menu locations. See - https://www.wpgraphql.com/docs/menus

So the below query returns no menus

query Menu {
  menus {
    nodes {
      id
      databaseId
      name
      menuItems {
        edges {
          node {
            id
            label
            parentId
          }
        }
      }
    }
  }
}

We should look at adding examples on how a user can query menus for themes with no menu locations maybe through an example plugin in the example.

Ngôn ngữ chính
PHP
Star
47
Fork
3
Merge trung bình
7 giờ 1 phút
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wpengine/hwptoolkit

Tất cả issue của wpengine/hwptoolkit

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.