If my product variation are Twin,Queen,King how would I display the “QUEEN” size using the code below:
add_filter(‘woocommerce_variable_price_html’, ‘custom_price_text’, 10, 2);
function custom_price_text( $price, $product ) {
$price = ”;
$price .= ‘<span class=”from”>’ . _x(‘A4 Sample’, ‘min_price’, ‘woocommerce’) . ‘ </span>’;
$price .= woocommerce_price($product->get_price());
return $price;