T
T
trenton2020-12-16 01:11:02
WordPress
trenton, 2020-12-16 01:11:02

Metabox type color(picker), NATIVE method, who did it?

This is how text, number, checkbox are done in this article, by analogy, how to do color in the same way?
To make Iris appear, select a color in it and save the value.
https://wpruse.ru/woocommerce/custom-fields-in-pro...
Iris is built into the same customizer, so it should be possible.

I found this article on this subject, it seems to be it. https://madebydenis.com/adding-metaboxes-to-your-p...
I realized that I need to connect to the color-pickera api, scripts and styles through the admin panel.
But I don’t understand where this field is displayed in order to try it, and I still don’t understand how to transfer it to any of the hooks of the first article. In the sense of any hook that would display this beauty in the product tabs.
Maybe someone has already done this? Or someone with a trained eye.

It is the native method that is of interest. Maybe someone has already dug into the same thing as me.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question