Kick off reload of customizer preview from the preview

In my Photographus theme, I needed to reload the customizer preview from the preview in a specific case. After searching for a short while, I found the post »Implementing Selective Refresh in the Customizer« by Weston Ruter.

The problem is solved with the following JS line:

wp.customize.preview.send('refresh');
Code language: JavaScript (javascript)

Leave a Reply

Your email address will not be published. Required fields are marked *