diff --git a/includes/admin/meta-boxes/views/html-product-data-inventory.php b/includes/admin/meta-boxes/views/html-product-data-inventory.php index fe9834feb62..cb5d406b231 100644 --- a/includes/admin/meta-boxes/views/html-product-data-inventory.php +++ b/includes/admin/meta-boxes/views/html-product-data-inventory.php @@ -71,19 +71,20 @@ if ( ! defined( 'ABSPATH' ) ) { ) ); - woocommerce_wp_text_input( array( - 'id' => '_low_stock_amount', - 'value' => $product_object->get_low_stock_amount( 'edit' ), - 'placeholder' => get_option( 'woocommerce_notify_low_stock_amount' ), - 'label' => __( 'Low stock threshold', 'woocommerce' ), - 'desc_tip' => true, - 'description' => __( 'When product stock reaches this amount you will be notified by email', 'woocommerce' ), - 'type' => 'number', - 'custom_attributes' => array( - 'step' => 'any', - ), - 'data_type' => 'stock', - ) ); + woocommerce_wp_text_input( + array( + 'id' => '_low_stock_amount', + 'value' => $product_object->get_low_stock_amount( 'edit' ), + 'placeholder' => get_option( 'woocommerce_notify_low_stock_amount' ), + 'label' => __( 'Low stock threshold', 'woocommerce' ), + 'desc_tip' => true, + 'description' => __( 'When product stock reaches this amount you will be notified by email', 'woocommerce' ), + 'type' => 'number', + 'custom_attributes' => array( + 'step' => 'any', + ), + ) + ); do_action( 'woocommerce_product_options_stock_fields' );