WordPress at a glance
function is not described

wc_get_cart_undo_url() WC 3.3.0

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

Hooks from the function
Return

String. url to page

Usage

wc_get_cart_undo_url( $cart_item_key );
$cart_item_key(string) (required)
Cart item key to undo.

Changelog

Since 3.3.0 Introduced.

Code of wc_get_cart_undo_url() WC 5.3.0

<?php
function wc_get_cart_undo_url( $cart_item_key ) {
	$cart_page_url = wc_get_cart_url();

	$query_args = array(
		'undo_item' => $cart_item_key,
	);

	return apply_filters( 'woocommerce_get_undo_url', $cart_page_url ? wp_nonce_url( add_query_arg( $query_args, $cart_page_url ), 'woocommerce-cart' ) : '', $cart_item_key );
}