public get_remove_url ( string $cart_item_key ) : string | ||
$cart_item_key | string | contains the id of the cart item |
return | string | url to page |
public function get_remove_url($cart_item_key)
{
$cart_page_url = wc_get_page_permalink('cart');
return apply_filters('woocommerce_get_remove_url', $cart_page_url ? wp_nonce_url(add_query_arg('remove_item', $cart_item_key, $cart_page_url), 'woocommerce-cart') : '');
}