Automattic\WooCommerce\Internal\ProductFeed\Mapping
UcpProductMapper::get_currency
Resolve the currency code used to label amounts.
Method of the class: UcpProductMapper{}
No Hooks.
Returns
string.
Usage
// private - for code of main (parent) class only $result = $this->get_currency(): string;
UcpProductMapper::get_currency() UcpProductMapper::get currency code WC 11.3.0
private function get_currency(): string {
return '' !== $this->currency ? $this->currency : (string) get_woocommerce_currency();
}