In WooCommerce è semplice modificare l'output HTML del prezzo dei prodotti.
La soluzione è la seguente:
<?php
add_filter( 'woocommerce_get_price_html', 'my_price_html', 100, 2 );
function my_price_html( $price, $product ) {
$label = __( 'Solo a: ', 'textdomain' );
$replace = $label . '<ins>';
return str_replace( '<ins>', $replace, $price );
}
?>