I am trying to create a javascript which fires everytime the preview iframe is refreshed. I have found this one:
wp.customize.bind('ready', function () {
});
But this only works when the Customizer is first loaded. I use transport
postMessage
on my custom settings, and this only refreshes the iframe. How do I hook into this to know when the iframe has been refreshed?
Thank you!