woocommerce_stock_amount_cart_item

woocommerce_stock_amount_cart_item

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_stock_amount_cart_item') is found 1 times:

  • /includes/class-wc-form-handler.php line 690
    						continue;
    					}
    
    					// Sanitize.
    					$quantity = apply_filters( 'woocommerce_stock_amount_cart_item', wc_stock_amount( preg_replace( '/[^0-9\.]/', '', $cart_totals[ $cart_item_key ]['qty'] ) ), $cart_item_key );
    
    					if ( '' === $quantity || $quantity === $values['quantity'] ) {
    						continue;
    					}
    
    					// Update cart validation.