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

オープン
#23,522 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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時間
マージ済み PR(30日)
100

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wordpress-mobile/WordPress-Android のほかの issue

wordpress-mobile/WordPress-Android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。