Add permalinks_enabled data to API index

This commit is contained in:
Gerhard 2014-02-26 07:50:51 +02:00 committed by Coen Jacobs
parent 39e5b81321
commit 2fa9c2488e
1 changed files with 10 additions and 9 deletions

View File

@ -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/',
),