[REST API] Fixed variations 'visible' description in schema

Fixes #17249
This commit is contained in:
Claudio Sanches 2017-10-17 14:22:56 -02:00
parent 4bec8f9df5
commit c739c80817
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ class WC_REST_Product_Variations_Controller extends WC_REST_Products_Controller
'readonly' => true, 'readonly' => true,
), ),
'visible' => array( 'visible' => array(
'description' => __( "Define if the attribute is visible on the \"Additional information\" tab in the product's page.", 'woocommerce' ), 'description' => __( "Define if the variation is visible on the product's page.", 'woocommerce' ),
'type' => 'boolean', 'type' => 'boolean',
'default' => true, 'default' => true,
'context' => array( 'view', 'edit' ), 'context' => array( 'view', 'edit' ),