PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Color filter

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Now the color of taxonomy is saved on $woof_settings['color'][$tax_slug] but i prefer use a custom field inside taxonomy, i suggest to add a filter in -> woof.php inside color folder to use it:

$colors = isset($woof_settings['color'][$tax_slug]) ? $woof_settings['color'][$tax_slug] : array(); //Current
$colors = apply_filters('woof_field_color',$colors,$tax_slug); //Add below

Example function to use a custom field:

function add_filter_color_custom($colors,$tax_slug) {

$terms = get_terms( array(
'taxonomy' => $tax_slug,
'hide_empty' => false,
));
if(!empty($terms)) {

foreach ( $terms as $term ) {

$my_color = get_field('hex',$tax_slug.'_'.$term->term_id); //This is for ACF use get_post_meta for a custom field
$colors[$term->slug] = $my_color;
}
}

return $colors;
}

add_filter('woof_field_color','add_filter_color_custom',1,2);

Hello

I will pass this to the developers.  They decide the feasibility of your idea