Skip to content

Instantly share code, notes, and snippets.

@sajidzaman
Created August 16, 2013 19:08
Show Gist options
  • Save sajidzaman/6252645 to your computer and use it in GitHub Desktop.
Save sajidzaman/6252645 to your computer and use it in GitHub Desktop.
Woocommerce get_price_html() override
add_filter( 'woocommerce_get_price_html', 'my_price_html', 100, 2 );
function my_price_html( $price, $product ){
return 'Was:' . str_replace( '<ins>', ' Now:<ins>', $price );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment