[wp-trac] [WordPress Trac] #39634: Customize: Add REST API endpoints for panels, sections, controls, settings, and partials
WordPress Trac
noreply at wordpress.org
Tue Feb 14 20:25:12 UTC 2017
#39634: Customize: Add REST API endpoints for panels, sections, controls, settings,
and partials
-------------------------+-----------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.8
Component: Customize | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: rest-api
-------------------------+-----------------------
Description changed by westonruter:
Old description:
> In order to make the customizer a REST API-backed application, the
> objects that it uses need to have REST API endpoints. In addition to
> having an endpoint for changesets (#38900), there should be endpoints for
> getting a list of the panels, sections, controls, settings, and partials.
> One immediate benefit for these endpoints will be to allow for the
> objects to be lazy-loaded when needed (#28580) to improve performance.
> Having schemas attached to `WP_Customize_Setting` would also allow
> controls to be generated automatically with the appropriate validation
> constraints (#38845). This will also facilitate bootstrapping the
> customizer onto the frontend so that customization can be done without
> going to `customize.php`.
New description:
In order to make the customizer a REST API-backed application, the objects
that it uses need to have REST API endpoints. In addition to having an
endpoint for changesets (#38900), there should be endpoints for getting a
list of the panels, sections, controls, settings, and partials. One
immediate benefit for these endpoints will be to allow for the objects to
be lazy-loaded when needed (#28580) to improve performance. Having schemas
attached to `WP_Customize_Setting` would also allow controls to be
generated automatically with the appropriate validation constraints
(#38845). This will also facilitate bootstrapping the customizer onto the
frontend so that customization can be done without going to
`customize.php`.
Feature plugin repo: https://github.com/WP-API/wp-api-customize-endpoints
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39634#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list