diff --git a/modules/ppcp-api-client/services.php b/modules/ppcp-api-client/services.php index bdbca5058..fa6d817f2 100644 --- a/modules/ppcp-api-client/services.php +++ b/modules/ppcp-api-client/services.php @@ -326,7 +326,11 @@ 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. }