Merge pull request #20953 from woocommerce/fix/20927

Hide "Stock status" field for grouped products
This commit is contained in:
Rodrigo Primo 2018-08-07 06:58:36 -03:00 committed by GitHub
commit 7922e68022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,10 @@
<?php
/**
* Displays the inventory tab in the product data meta box.
*
* @package WooCommerce\Admin
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
@ -88,7 +94,7 @@ if ( ! defined( 'ABSPATH' ) ) {
array(
'id' => '_stock_status',
'value' => $product_object->get_stock_status( 'edit' ),
'wrapper_class' => 'stock_status_field hide_if_variable hide_if_external',
'wrapper_class' => 'stock_status_field hide_if_variable hide_if_external hide_if_grouped',
'label' => __( 'Stock status', 'woocommerce' ),
'options' => wc_get_product_stock_status_options(),
'desc_tip' => true,