Add price format, decimal separator, and thousand separator to currency settings object.

This commit is contained in:
Jeff Stieler 2019-01-16 17:32:48 -07:00
parent 78e1be139f
commit 4bf7a79a84
1 changed files with 7 additions and 4 deletions

View File

@ -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(),
)
);
}