mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Use get_woocommerce_currency
to get shop currency
This commit is contained in:
parent
df57609350
commit
19b6eebd3e
1 changed files with 0 additions and 4 deletions
|
@ -326,11 +326,7 @@ return array(
|
|||
|
||||
'api.shop.currency' => static function ( ContainerInterface $container ) : string {
|
||||
$currency = get_woocommerce_currency();
|
||||
if ( $currency ) {
|
||||
return $currency;
|
||||
}
|
||||
|
||||
$currency = get_option( 'woocommerce_currency' );
|
||||
if ( ! $currency ) {
|
||||
return 'NO_CURRENCY'; // Unlikely to happen.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue