woocommerce_get_remove_url filter-hookWC 3.3.0

Gets the url to remove an item from the cart.

Usage

add_filter( 'woocommerce_get_remove_url', 'wp_kama_woocommerce_get_remove_url_filter' );

/**
 * Function for `woocommerce_get_remove_url` filter-hook.
 * 
 * @param string $cart_item_key contains the id of the cart item.
 *
 * @return string
 */
function wp_kama_woocommerce_get_remove_url_filter( $cart_item_key ){

	// filter...
	return $cart_item_key;
}
$cart_item_key(string)
contains the id of the cart item.

Changelog

Since 3.3.0 Introduced.

Where the hook is called

wc_get_cart_remove_url()
woocommerce_get_remove_url
woocommerce/includes/wc-template-functions.php 3774
return apply_filters( 'woocommerce_get_remove_url', $cart_page_url ? wp_nonce_url( add_query_arg( 'remove_item', $cart_item_key, $cart_page_url ), 'woocommerce-cart' ) : '' );

Where the hook is used in WooCommerce

Usage not found.