Allowing alpha in wp-color-picker fields

[ad_1]

I am developing a plugin that includes a metabox with a color field that is using the wp-color-picker script and styles.

Everything works well, but I need this field to allow the alpha channel (8-digit HEX color). I don’t really mind if there is no alpha selector in the UI, but I want the input to accept a value other than a 6-digit HEX color.

Is there any way to do this?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer