woocommerce_cart_item_name │ filter-hook │ WC 2.1.0

This filter is documented above.

Usage

add_filter( 'woocommerce_cart_item_name', 'wp_kama_woocommerce_cart_item_name_filter', 10, 3 );

/**
 * Function for `woocommerce_cart_item_name` filter-hook.
 * 
 * @param  $sprintf       
 * @param  $cart_item     
 * @param  $cart_item_key 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_item_name_filter( $sprintf, $cart_item, $cart_item_key ){
	// filter...
	return $sprintf;
}
$sprintf
-
$cart_item
-
$cart_item_key
-

Changelog

Since 2.1.0 Introduced.

Where the hook is called

In file: /templates/cart/cart.php
woocommerce_cart_item_name
woocommerce/templates/cart/cart.php 122
echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $cart_item_name ), $cart_item, $cart_item_key ) );
woocommerce/templates/checkout/review-order.php 55
$product_name = apply_filters( 'woocommerce_cart_item_name', $cart_item_name, $cart_item, $cart_item_key );
woocommerce/templates/cart/cart.php 65
$product_name      = apply_filters( 'woocommerce_cart_item_name', $cart_item_name, $cart_item, $cart_item_key );
woocommerce/templates/cart/mini-cart.php 51
$product_name      = apply_filters( 'woocommerce_cart_item_name', $cart_item_name, $cart_item, $cart_item_key );

Where the hook is used in WooCommerce

Usage not found.