Created
May 12, 2017 18:42
-
-
Save tranquangchau/67ef9f90b9c1b238f051991a102c8a69 to your computer and use it in GitHub Desktop.
woocommerce get price without currency
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
global $woocommerce; | |
$currency = get_woocommerce_currency_symbol(); | |
$info['price'] = number_format( $price, wc_get_price_decimals(), wc_get_price_decimal_separator(), wc_get_price_thousand_separator()).$currency; | |
//WC Version: 2.6.11 | |
//WP Version: 4.7.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment