Skip to content

Instantly share code, notes, and snippets.

@kloon
Created November 28, 2012 18:08
Show Gist options
  • Save kloon/4162957 to your computer and use it in GitHub Desktop.
Save kloon/4162957 to your computer and use it in GitHub Desktop.
WooCommerce remove from: price
// 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 );
@DDROTT
Copy link

DDROTT commented Jun 23, 2015

Hello,

Is there any way to disable redirection at all. Just to refresh page?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment