apply_filters( 'woocommerce_cart_item_required_stock_is_not_enough', bool $has_stock , WC_Product $product , array $values )
Allows filter if product have enough stock to get added to the cart.
Description Description
Parameters Parameters
- $has_stock
-
If have enough stock.
- $product
-
Product instance.
- $values
-
Cart item values.
Source Source
File: includes/class-wc-cart.php
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |