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

未关闭
#23,522 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, kotlin, wordpress
领域
api, mobile

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

[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.

主要语言
Kotlin
星标
3.2k
派生
1.4k
平均合并
1 天 4 小时
30 天内合并 PR
100

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wordpress-mobile/WordPress-Android 的其他 Issue

查看 wordpress-mobile/WordPress-Android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。