WordPress at Your Fingertips
function is not described

WC_Cart::get_undo_url() public WC 1.0

Gets the url to re-add an item into 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_undo_url( $cart_item_key );
$cart_item_key(string) (required)
Cart item key to undo.

Code of WC_Cart::get_undo_url() WC 5.7.1

public function get_undo_url( $cart_item_key ) {
	wc_deprecated_function( 'WC_Cart::get_undo_url', '3.3', 'wc_get_cart_undo_url' );

	return wc_get_cart_undo_url( $cart_item_key );