WC_Cart::get_undo_url()publicWC 1.0

Gets the url to re-add an item into the cart.

Method of the class: WC_Cart{}

No Hooks.

Return

String. url to page

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->get_undo_url( $cart_item_key );
$cart_item_key(string) (required)
Cart item key to undo.

WC_Cart::get_undo_url() code WC 9.4.2

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 );
}