Update API index response

Part of #4055
This commit is contained in:
Max Rice 2013-11-14 13:55:45 -05:00
parent 709f0da16f
commit ec55e43c24
1 changed files with 4 additions and 2 deletions

View File

@ -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