Created
August 16, 2013 19:08
-
-
Save sajidzaman/6252645 to your computer and use it in GitHub Desktop.
Woocommerce get_price_html() override
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
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