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.


Top ↑

Source Source

File: includes/class-wc-cart.php


Top ↑

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.