woocommerce_format_total()
Deprecated from version 2.1. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Formal total costs - format to the number of decimal places for the base currency.
No Hooks.
Return
String
.
Usage
woocommerce_format_total( $number );
- $number(mixed) (required)
- -
Changelog
Deprecated since | 2.1 |
woocommerce_format_total() woocommerce format total code WC 9.6.1
function woocommerce_format_total( $number ) { wc_deprecated_function( __FUNCTION__, '2.1', 'wc_format_decimal()' ); return wc_format_decimal( $number, wc_get_price_decimals(), false ); }