woocommerce_cart_item_remove_link filter-hookWC 1.0

Usage

add_filter( 'woocommerce_cart_item_remove_link', 'wp_kama_woocommerce_cart_item_remove_link_filter', 10, 2 );

/**
 * Function for `woocommerce_cart_item_remove_link` filter-hook.
 * 
 * @param  $sprintf       
 * @param  $cart_item_key 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_item_remove_link_filter( $sprintf, $cart_item_key ){

	// filter...
	return $sprintf;
}
$sprintf
-
$cart_item_key
-

Where the hook is called

In file: /templates/cart/cart.php
woocommerce_cart_item_remove_link
woocommerce/templates/cart/cart.php 60-71
echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	'woocommerce_cart_item_remove_link',
	sprintf(
		'<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">&times;</a>',
		esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
		/* translators: %s is the product name */
		esc_attr( sprintf( __( 'Remove %s from cart', 'woocommerce' ), wp_strip_all_tags( $product_name ) ) ),
		esc_attr( $product_id ),
		esc_attr( $_product->get_sku() )
	),
	$cart_item_key
);
woocommerce/templates/cart/mini-cart.php 47-59
echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	'woocommerce_cart_item_remove_link',
	sprintf(
		'<a href="%s" class="remove remove_from_cart_button" aria-label="%s" data-product_id="%s" data-cart_item_key="%s" data-product_sku="%s">&times;</a>',
		esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
		/* translators: %s is the product name */
		esc_attr( sprintf( __( 'Remove %s from cart', 'woocommerce' ), wp_strip_all_tags( $product_name ) ) ),
		esc_attr( $product_id ),
		esc_attr( $cart_item_key ),
		esc_attr( $_product->get_sku() )
	),
	$cart_item_key
);

Where the hook is used in WooCommerce

Usage not found.