0

Once the customizer color picker is initialized, how can the color palette be updated? The palette can be set through the js options before it's initialized using something like:

jQuery.wp.wpColorPicker.prototype.options.palettes = ["#303f9f", "#5c6bc0", "#e8eaf6", "#ffffff"];

Updating the options after the picker is initialized has no effect on the palettes. I'm guessing the picker needs to be reinitialized but can't seem to figure out how to do that inside of the customizer using wpColorPicker.

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.