WC_Cart::get_remove_url()publicWC 1.0

Gets the url to remove an item from the cart.

Метод класса: WC_Cart{}

Хуков нет.

Возвращает

Строку. url to page

Использование

$WC_Cart = new WC_Cart();
$WC_Cart->get_remove_url( $cart_item_key );
$cart_item_key(строка) (обязательный)
contains the id of the cart item.

Код WC_Cart::get_remove_url() WC 8.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 );
}