wc_admin_number_format()WC 1.0

Format a number using the decimal and thousands separator settings in WooCommerce.

Хуков нет.

Возвращает

Строку.

Использование

wc_admin_number_format( $number );
$number(разное) (обязательный)
Number to be formatted.

Код wc_admin_number_format() WC 9.4.2

function wc_admin_number_format( $number ) {
	$currency_settings = Settings::get_currency_settings();
	return number_format(
		$number,
		0,
		$currency_settings['decimalSeparator'],
		$currency_settings['thousandSeparator']
	);
}