[wp-trac] [WordPress Trac] #29071: Make it easier to include an instance of the Customizer outside of customize.php

WordPress Trac noreply at wordpress.org
Fri Aug 1 00:50:21 UTC 2014


#29071: Make it easier to include an instance of the Customizer outside of
customize.php
-------------------------+------------------------------
 Reporter:  ericlewis    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration
-------------------------+------------------------------

Comment (by celloexpressions):

 A few alternative things to consider:
 - Rather than being able to have entirely separate instances of the
 Customizer, what about making the Customizer more adaptable to different
 contexts?
 - Customizer Panels provide different contexts for the Customizer; deep-
 linking (#28650) into a certain panel on load, and possibly having the
 option to prevent users from leaving a given panel could effectively give
 you multiple customizer instances for different purposes. The new support
 for contextual controls probably helps here, especially once it's extended
 to sections and panels.
 - `customize-loader.js` provides a way to open the customizer without
 losing too much context of the current screen. It could probably be
 improved to provide the option for looking more like a modal if that's
 desirable for a given situation. See [attachment:customize-preview-
 posts.php] for an example of leveraging customize-loader to essentially
 create a new Customizer instance, and also think about that with a deep-
 linked panel (demo plugin for previewing posts, not 100% functional but
 that's the idea + amount of code required).
 - The Customizer should eventually be incorporated into WP-API, and should
 theoretically be much more portable when that happens.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29071#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list