Links for images type filter as "image" and "color"
Values:
- URL of image
- term of current taxonomy
For example, you want to display standard category images:
add_filter('avalon23_image_url',function( $url, $term) {
if('product_cat' == $term->taxonomy) {
$image_id = get_term_meta( $term->term_id, 'thumbnail_id', true );
$url = wp_get_attachment_image_url($image_id, 'thumbnail');
}
return $url;
}, 99, 2);

