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
/** | |
* | |
* Code used to change the price order in WooCommerce | |
* | |
**/ | |
function PREFIX_woocommerce_price_html( $price, $product ){ | |
return preg_replace('@(<del>.*?</del>).*?(<ins>.*?</ins>)@misx', '$2 $1', $price); | |
} |