The “From:” prefix is appended in the Bookings product class and the final HTML is then passed through WooCommerce’s standard woocommerce_get_price_html filter, which you can hook to strip or replace it.
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.
Hi there,
Thanks for the suggestion.
The “From:” prefix is appended in the Bookings product class and the final HTML is then passed through WooCommerce’s standard woocommerce_get_price_html filter, which you can hook to strip or replace it.
Sample snippet:
add_filter( ‘woocommerce_get_price_html’, function( $price_html, $product ) {
if ( $product instanceof WC_Product_Booking ) {
$price_html = str_replace( __( ‘From: ‘, ‘woocommerce-bookings’ ), ”, $price_html );
}
return $price_html;
}, 20, 2 );
Marking this one as completed. Thanks again!