[wp-trac] [WordPress Trac] #54293: Expand functionality of themes REST API
WordPress Trac
noreply at wordpress.org
Tue Jun 7 11:59:12 UTC 2022
#54293: Expand functionality of themes REST API
------------------------------------------+------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: rest-api
------------------------------------------+------------------------------
Description changed by spacedmonkey:
Old description:
> Current the REST API for themes is extremely limited. It only allows for
> listing themes and getting the current theme. However, there are lots
> theme related functions that are not possible to access via this api.
> This includes ( but it not limited to )
>
> - Installing new themes
> - Activating theme
> - Deleting theme
>
> Any themes api should allow the patterns / structure of the plugins REST
> API, in it's params and responses.
>
> It is also worth noting, that have a multisite element, as themes can be
> network activated / deactivated.
New description:
Current the REST API for themes is extremely limited. It only allows for
listing themes and getting the current theme. However, there are lots
theme related functions that are not possible to access via this api. This
includes ( but it not limited to )
- Installing new themes
- Network activating theme ( multisite only )
- Network deactivating theme ( multisite only )
- Active ( switch to theme )
- Deleting theme
Any themes api should allow the patterns / structure of the plugins REST
API, in it's params and responses.
It is also worth noting, that have a multisite element, as themes can be
network activated / deactivated.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54293#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list