Created
November 28, 2012 18:08
-
-
Save kloon/4162957 to your computer and use it in GitHub Desktop.
WooCommerce remove from: price
This file contains 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
// Change from text on price | |
function custom_from_price_html( $price, $product ) { | |
if ( strpos( $price, 'From: ' ) <> false ) | |
return str_replace( 'From: ', '', $price ) . __( ' and up', 'woocommerce'); | |
else return $price; | |
} | |
add_filter( 'woocommerce_get_price_html', 'custom_from_price_html', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Is there any way to disable redirection at all. Just to refresh page?
Thank you.