Warning: This function has been deprecated.

woocommerce_format_total( mixed $number )

Formal total costs – format to the number of decimal places for the base currency.

Description Description

Parameters Parameters



Top ↑

Return Return


Top ↑

Source Source

File: includes/wc-deprecated-functions.php

function woocommerce_format_total( $number ) {
	wc_deprecated_function( __FUNCTION__, '2.1', 'wc_format_decimal()' );
	return wc_format_decimal( $number, wc_get_price_decimals(), false );

Top ↑

Changelog Changelog

Version Description
2.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.