How to get control choices from $setting object passed to sanitize_callback
Using $wp_customize global object:
Using $wp_customize global object:
I have a theme with an option for setting the excerpt length for generated excerpts. Is there a way in the Customizer of conditionally changing the transport mechanism, depending on whether the preview page is showing excerpts?
I am trying to create Customizer controls using JS API. What is a proper way to define control settings?
I’ve got a site with a few extra Customizer sections. Is there a way to link directly to these so that section open when the page loads?
How would I go about finding if a image (with a certain URL) is used stored in the Customizer data?
When would it be appropriate to use the settings API, and when would it be better to use the theme customizer?
One of the cool new features of WordPress 4.0 is the add_panel() method. In my situation, i’d like to create a new panel for theme options, that’s very straight forward, but is it possible to create sub panels under the them options panel, for example one for the header, one for body and one for the footer? If so, how would I go about doing it?
Is this the correct way to pass data from customize-controls.js to customize-preview.js?