[wp-hackers] Force Theme Customizer to Reload iFrame
frank at bueltge.de
Tue Oct 16 08:56:34 UTC 2012
You can find also a small example for WP Title and Description on this theme.
See the dev version od script for read the source:
The include can you find in the customizer file:
add_action( 'customize_preview_init', array( $this, 'customize_preview_js' ) );
On Mon, Oct 15, 2012 at 7:41 PM, Amy Hendrix <sabreuse at gmail.com> wrote:
> To force an auto-refresh, you'll need to set the 'transport' arg to
> 'postMessage' in your add_setting() call. You then need to write a bit
> of js to handle your particular case. You can find more details at:
> (scroll down to the end for the "Enter postMessage" section)
> On Mon, Oct 15, 2012 at 12:00 PM, David Kryzaniak <dkryzaniak at gmail.com> wrote:
>> Hey all!
>> I'm working on a few menus in the Theme Customizer admin area. I need to
>> refresh once a button (A tag) is pressed. The button is in the right column
>> function I can call to force a refresh without saving? If I type in a text
>> area, the page auto refreshes just fine.
>> Is there somewhere in the codex that has the un-minified js for the theme
>> Thanks for the help!
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers