[wp-trac] [WordPress Trac] #30741: Build-out API for adding Customizer Panels, Sections, and Controls entirely with JS
WordPress Trac
noreply at wordpress.org
Mon Sep 5 17:48:27 UTC 2016
#30741: Build-out API for adding Customizer Panels, Sections, and Controls entirely
with JS
------------------------------+-----------------------------
Reporter: celloexpressions | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
------------------------------+-----------------------------
Comment (by celloexpressions):
Replying to [comment:16 celloexpressions]:
> Currently, to remove a control you need to do both
`control.container.remove();` and `api.control.remove( control.id );`. We
should create a shortcut where `control.remove();` self-destructs. Panels
and sections should have similar approaches that also delete children, and
we also need to revisit adding controls in JS here.
See #31334 for that piece.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30741#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list