Created
October 1, 2015 20:24
-
-
Save eltondev/fff775dde09fac77aa46 to your computer and use it in GitHub Desktop.
Custom price Woocommerce Offers
This file contains hidden or 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 new_custom_price_html( $price, $product ){ | |
return 'De: ' . str_replace( ' <ins>', ' Por: <ins> ', $price ); | |
} | |
add_filter( 'woocommerce_get_price_html', 'new_custom_price_html', 100, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment