Add permalinks_enabled data to API index
This commit is contained in:
parent
39e5b81321
commit
2fa9c2488e
|
@ -432,6 +432,7 @@ class WC_API_Server {
|
|||
'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