Add permalinks_enabled data to API index
This commit is contained in:
parent
39e5b81321
commit
2fa9c2488e
|
@ -425,15 +425,16 @@ class WC_API_Server {
|
|||
'wc_version' => WC()->version,
|
||||
'routes' => array(),
|
||||
'meta' => array(
|
||||
'timezone' => wc_timezone_string(),
|
||||
'currency' => get_woocommerce_currency(),
|
||||
'currency_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' ),
|
||||
'ssl_enabled' => ( 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) ),
|
||||
'links' => array(
|
||||
'help' => 'http://docs.woothemes.com/document/woocommerce-rest-api/',
|
||||
'timezone' => wc_timezone_string(),
|
||||
'currency' => get_woocommerce_currency(),
|
||||
'currency_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' ),
|
||||
'ssl_enabled' => ( 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) ),
|
||||
'permalinks_enabled' => ( '' !== get_option( 'permalink_structure' ) ),
|
||||
'links' => array(
|
||||
'help' => 'http://docs.woothemes.com/document/woocommerce-rest-api/',
|
||||
),
|
||||
),
|
||||
) );
|
||||
|
|
Loading…
Reference in New Issue