Skip to content

Instantly share code, notes, and snippets.

@ddbs
Forked from kloon/gist:4162957
Created March 22, 2014 23:53
Show Gist options
  • Save ddbs/9716257 to your computer and use it in GitHub Desktop.
Save ddbs/9716257 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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment