T
T
trenton2021-01-07 17:19:58
WooCommerce
trenton, 2021-01-07 17:19:58

Change the field type in pa_color from text to color - what's the next step?

I've been looking for a way to bypass plugins for a long time and find a solution that suits me, can someone tell me the next step?
pa_color - taxonomy.
In the admin panel, she has a name field.
It would be enough to change its type and add a class so that the color value is immediately displayed everywhere, and not the text.

с 
<input name="name" id="name" type="text" value="Black" size="40" aria-required="true">
на
<input name="name" id="name" type="color" value="#000000" size="40" class="wpColorChoose" aria-required="true">

I tried it in the browser through the DevTool - it seems to be what you need, but I don’t know how to reach the field with the code.
5ff717b38821d694893727.jpeg
It would even be possible not to create a new meta field, just edit it.
What filter can reach a taxonomy field and return it with a new type?

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