Home › Forums › Feature Requests › Customise Color Picker Swatches › Reply To: Customise Color Picker Swatches
Just for future reference, this has been added in v5.3.6.
At bottom of page here:
https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/
acf.add_filter('color_picker_args', function( args, $field ){
// do something to args
args.palettes = ['#5ee8bf', '#2f353e', '#f55e4f']
// return
return args;
});
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.