[REST API] Fixed variations context for products v2

This commit is contained in:
Claudio Sanches 2017-03-23 02:29:06 -03:00
parent 7dfd62ecfc
commit 1072bea460
1 changed files with 1 additions and 1 deletions

View File

@ -1921,7 +1921,7 @@ class WC_REST_Products_Controller extends WC_REST_Legacy_Products_Controller {
'variations' => array(
'description' => __( 'List of variations IDs.', 'woocommerce' ),
'type' => 'array',
'context' => array( 'view' ),
'context' => array( 'view', 'edit' ),
'items' => array(
'type' => 'integer',
),