Created
March 4, 2022 04:25
-
-
Save SirDarcanos/8b4b1fd9994f0c0c82a49eea8e63cd3d to your computer and use it in GitHub Desktop.
Remove the "From:" in bookable product prices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_get_price_html', 'wc_edit_bookable_remove_from_price', 10, 2 ); | |
function wc_edit_bookable_remove_from_price( $html, $product ) { | |
if ( ! $product->is_type( 'booking' ) ) { | |
return $html; | |
} | |
return str_replace( 'From: ', '', $html ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment