Created
October 15, 2017 18:04
-
-
Save kabbo508/79289bd048c2e653c3ced3eaf3ae0f08 to your computer and use it in GitHub Desktop.
Add text before regular price only In Woocommerce
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
function bd_rrp_price_html( $price, $product ) { | |
$retun_string = 'RRP: ' . $price; | |
return $return_string; | |
} | |
add_filter( 'woocommerce_get_price_html', 'bd_rrp_price_html', 100, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment