[wp-hackers] Force Theme Customizer to Reload iFrame

Amy Hendrix sabreuse at gmail.com
Mon Oct 15 17:41:41 UTC 2012

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
> and not on the page, if it makes a difference. Is there a javascript
> 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
> customizer?
> Thanks for the help!
> -Dave
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list