Skip to content

Instantly share code, notes, and snippets.

@kabbo508
Created October 15, 2017 18:04
Show Gist options
  • Save kabbo508/79289bd048c2e653c3ced3eaf3ae0f08 to your computer and use it in GitHub Desktop.
Save kabbo508/79289bd048c2e653c3ced3eaf3ae0f08 to your computer and use it in GitHub Desktop.
Add text before regular price only In Woocommerce
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