woocommerce_cart_item_quantity filter-hook . WC 1.0
Usage
add_filter( 'woocommerce_cart_item_quantity', 'filter_function_name_8008', 10, 3 ); function filter_function_name_8008( $product_quantity, $cart_item_key, $cart_item ){ // filter... return $product_quantity; }
- $product_quantity
- -
- $cart_item_key
- -
- $cart_item
- -
Where the hook is called
In file: /templates/cart/cart.php
woocommerce_cart_item_quantity
woocommerce/templates/cart/cart.php 121
echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); // PHPCS: XSS ok.