I have registered a setting/controls and partial refresh with dynamic JS API.

Have added a customizer preview to change the color like below,

wp.customize( control, function( value ) {
    value.bind(function (value) {
            console.log("In side callback");

When I am trying to set control value programmatically like below,


It is not listening for any changes from the Customizer preview area, when trying to set from the browser console it is working.

Do I need to explicitly call the bind callbacks?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.