From ec55e43c24a52340a4558ab22d38fcfeb8907331 Mon Sep 17 00:00:00 2001 From: Max Rice Date: Thu, 14 Nov 2013 13:55:45 -0500 Subject: [PATCH] Update API index response Part of #4055 --- includes/api/class-wc-api-server.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/api/class-wc-api-server.php b/includes/api/class-wc-api-server.php index d6167fcd4f4..7b557657c47 100644 --- a/includes/api/class-wc-api-server.php +++ b/includes/api/class-wc-api-server.php @@ -426,11 +426,13 @@ class WC_API_Server { 'URL' => get_option( 'siteurl' ), 'routes' => array(), 'meta' => array( - 'timezone' => $this->get_timezone(), + 'timezone' => $this->get_timezone(), 'currency' => get_woocommerce_currency(), + 'money_format' => get_woocommerce_currency_symbol(), + 'tax_included' => ( 'yes' === get_option( 'woocommerce_prices_include_tax' ) ), 'weight_unit' => get_option( 'woocommerce_weight_unit' ), 'dimension_unit' => get_option( 'woocommerce_dimension_unit' ), - 'supports_ssl' => ( 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) ), + 'ssl_enabled' => ( 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) ), 'links' => array( 'help' => 'http://docs.woothemes.com/document/woocommerce-rest-api/', 'profile' => 'https://raw.github.com/rmccue/WP-API/master/docs/schema.json', // TODO: update this