Skip to content

Instantly share code, notes, and snippets.

@eltondev
Created October 1, 2015 20:24
Show Gist options
  • Save eltondev/fff775dde09fac77aa46 to your computer and use it in GitHub Desktop.
Save eltondev/fff775dde09fac77aa46 to your computer and use it in GitHub Desktop.
Custom price Woocommerce Offers
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