woocommerce_cart_item_thumbnail
Usage
add_filter( 'woocommerce_cart_item_thumbnail', 'wp_kama_woocommerce_cart_item_thumbnail_filter', 10, 3 ); /** * Function for `woocommerce_cart_item_thumbnail` filter-hook. * * @param $product_image * @param $cart_item * @param $cart_item_key * * @return */ function wp_kama_woocommerce_cart_item_thumbnail_filter( $product_image, $cart_item, $cart_item_key ){ // filter... return $product_image; }
- $product_image
- -
- $cart_item
- -
- $cart_item_key
- -
Where the hook is called
In file: /templates/cart/cart.php
woocommerce_cart_item_thumbnail
woocommerce/templates/cart/cart.php 77
$thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );
woocommerce/templates/cart/mini-cart.php 41
$thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );