Automattic\WooCommerce\Internal\ProductFeed\Mapping

UcpProductMapper::get_currency │ private │ WC 1.0

Resolve the currency code used to label amounts.

Метод класса: UcpProductMapper{}

Хуков нет.

Возвращает

string.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_currency(): string;

Код UcpProductMapper::get_currency() WC 11.3.0

private function get_currency(): string {
	return '' !== $this->currency ? $this->currency : (string) get_woocommerce_currency();
}