Feature Request: Supported extension point for plugin menu items / WebView screens

Đang mở
#23,522 1 bình luận 0 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin, wordpress
Lĩnh vực
api, mobile

Hướng nghiên cứu

This is a design proposal, not a scoped change, and the payload names no files, tests or entry points. Start by settling the contract: the discovery endpoint's shape, the capability check, and how the app's My Site menu gets its items. Confirm with maintainers in the thread before writing code. Done means an agreed spec plus a first slice, such as a menu item rendered from a stubbed response.

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

Mô tả

[Type] Enhancement

What problem does this address?

The app's menu exposes only built-in screens. There is no public way for a plugin to add a menu item or link to its own wp-admin page.

For example, I maintain a payment plugin whose users manage payments and reports in wp-admin. Those pages are not listed in the app's menu; users must open WP Admin and navigate the full admin menu on a phone. I have received this request from plugin users.

What is your proposed solution?

Add a supported, WebView-based way for plugins to register app menu items:

  • A plugin registers a label, icon, wp-admin URL, and required capability.
  • Items are exposed to the app through a standard, capability-checked REST endpoint (or another discovery mechanism you prefer).
  • The app lists them in My Site and opens them in the existing authenticated WP Admin web view.
  • If a site does not expose the endpoint, nothing changes for that site.

Security constraints: same-origin HTTPS URLs only, server-side capability checks, sanitized labels/icons.

The same contract should apply to WordPress-iOS.

Ngôn ngữ chính
Kotlin
Star
3.2k
Fork
1.4k
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
100

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 wordpress-mobile/WordPress-Android

Tất cả issue của wordpress-mobile/WordPress-Android

Issue tương tự

Thêm issue về Kotlin

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.