WordPress at Your Fingertips
function is not described

WC_Cart::get_remove_url() public WC 1.0

Gets the url to remove an item from the cart.

{} It's a method of the class: WC_Cart{}

No Hooks.


String. url to page


$WC_Cart = new WC_Cart();
$WC_Cart->get_remove_url( $cart_item_key );
$cart_item_key(string) (required)
contains the id of the cart item.

Code of WC_Cart::get_remove_url() WC 5.7.0

public function get_remove_url( $cart_item_key ) {
	wc_deprecated_function( 'WC_Cart::get_remove_url', '3.3', 'wc_get_cart_remove_url' );

	return wc_get_cart_remove_url( $cart_item_key );