Link product attribute value to a URL – woocommerce

With the current WooCommerce release, try this instead of the make_product_atts_linkable() function in the question: function make_product_atts_linkable( $text, $attribute, $values ) { $vals = array(); if ( $attribute->is_taxonomy() ) { foreach ( $attribute->get_options() as $i => $id ) { if ( $url = get_term_meta( $id, ‘attribute_url’, true ) ) { $vals[] = ‘<a href=”‘ . … Read more