woocommerce_quantity_input_max, $this->is_sold_individually(
woocommerce_quantity_input_max, $this->is_sold_individually(
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_quantity_input_max, $this->is_sold_individually(') is found 1 times:
- /includes/abstracts/abstract-wc-product.php line 2126
* @param int|float $quantity The maximum quantity. * @param \WC_Product $this The product object. * @return int|float The maximum quantity. */ return wc_stock_amount( apply_filters( 'woocommerce_quantity_input_max', $this->is_sold_individually() ? 1 : ( $this->backorders_allowed() || ! $this->managing_stock() ? -1 : $this->get_stock_quantity() ), $this ) ); } /** * The step for the quantity input and the multiple_of by which the quantity can be purchased. * * @since 10.1.0