[REST API] Updated product schema

This commit is contained in:
Claudio Sanches 2016-05-31 17:39:34 -03:00
parent 2f1cddf47e
commit 4dde06234a
1 changed files with 2 additions and 2 deletions

View File

@ -1857,13 +1857,13 @@ class WC_REST_Products_Controller extends WC_REST_Posts_Controller {
'download_limit' => array( 'download_limit' => array(
'description' => __( 'Amount of times the product can be downloaded.', 'woocommerce' ), 'description' => __( 'Amount of times the product can be downloaded.', 'woocommerce' ),
'type' => 'integer', 'type' => 'integer',
'default' => null, 'default' => -1,
'context' => array( 'view', 'edit' ), 'context' => array( 'view', 'edit' ),
), ),
'download_expiry' => array( 'download_expiry' => array(
'description' => __( 'Number of days that the customer has up to be able to download the product.', 'woocommerce' ), 'description' => __( 'Number of days that the customer has up to be able to download the product.', 'woocommerce' ),
'type' => 'integer', 'type' => 'integer',
'default' => null, 'default' => -1,
'context' => array( 'view', 'edit' ), 'context' => array( 'view', 'edit' ),
), ),
'download_type' => array( 'download_type' => array(