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

Abierto
#23,522 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, kotlin, wordpress
Área
api, mobile

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Kotlin
Estrellas
3.2k
Forks
1.4k
Merge medio
1 d 4 h
PR fusionados (30 d)
100

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wordpress-mobile/WordPress-Android

Todos los issues de wordpress-mobile/WordPress-Android

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.