From 4bf7a79a8488edf4ad9eb7c3ef7be59fe9960605 Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Wed, 16 Jan 2019 17:32:48 -0700 Subject: [PATCH] Add price format, decimal separator, and thousand separator to currency settings object. --- plugins/woocommerce-admin/lib/common.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/woocommerce-admin/lib/common.php b/plugins/woocommerce-admin/lib/common.php index 9218c38ba95..8664e17b37c 100644 --- a/plugins/woocommerce-admin/lib/common.php +++ b/plugins/woocommerce-admin/lib/common.php @@ -269,10 +269,13 @@ function wc_admin_currency_settings() { return apply_filters( 'wc_currency_settings', array( - 'code' => $code, - 'precision' => wc_get_price_decimals(), - 'symbol' => get_woocommerce_currency_symbol( $code ), - 'position' => get_option( 'woocommerce_currency_pos' ), + 'code' => $code, + 'precision' => wc_get_price_decimals(), + 'symbol' => get_woocommerce_currency_symbol( $code ), + 'position' => get_option( 'woocommerce_currency_pos' ), + 'decimal_separator' => wc_get_price_decimal_separator(), + 'thousand_separator' => wc_get_price_thousand_separator(), + 'price_format' => get_woocommerce_price_format(), ) ); }