From 19b6eebd3e3f7a86dae97600d719f13150108e8a Mon Sep 17 00:00:00 2001 From: dinamiko Date: Fri, 11 Feb 2022 10:47:36 +0100 Subject: [PATCH] Use `get_woocommerce_currency` to get shop currency --- modules/ppcp-api-client/services.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/ppcp-api-client/services.php b/modules/ppcp-api-client/services.php index fa6d817f2..bdbca5058 100644 --- a/modules/ppcp-api-client/services.php +++ b/modules/ppcp-api-client/services.php @@ -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. }