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.9.8.1

apply_filters('woocommerce_stock_amount_cart_item') is found 1 times:

  • /includes/class-wc-form-handler.php line 708
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
        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.