add_filter('woocommerce_variable_price_html', 'custom_price_text', 10, 2);

function custom_price_text( $price, $product ) {

$price = '';
$price .= '<span class="from">' . _x('CUSTOM TEXT HERE:', 'min_price', 'woocommerce') . ' </span>';
$price .= woocommerce_price($product->get_price());

return $price;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.