Created
February 25, 2021 16:55
-
-
Save jrick1229/6d56e5978ce2115c2a1cc2d94d2e57dd to your computer and use it in GitHub Desktop.
Append USD to price string 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
<?php | |
add_filter( 'wc_price', 'wc_price_add_USD', 10, 3 ); | |
function wc_price_add_USD( $return, $price, $args){ | |
$price= "$" . $price . " USD"; | |
return $price; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment