I'm using 'transport' => 'postMessage'
to update the text within the footer area during theme customisation live preview.
My problem is that on my website, the corresponding theme setting (footer_text
) has the_content
filters applied to it. Is there any way to apply that filter via JS, or I am stuck with 'transport' => 'refresh'
for situations like this? Thanks.
(function($){
/** Update the footer text */
wp.customize('footer_text', function(value){
value.bind(function(newval){
$('#footer-left').html(newval);
});
});
})(jQuery);