wc_get_cart_remove_url( string $cart_item_key )
Gets the url to remove an item from the cart.
Description Description
Parameters Parameters
- $cart_item_key
-
(Required) contains the id of the cart item.
Return Return
(string) url to page
Source Source
File: includes/wc-template-functions.php
function wc_get_cart_remove_url( $cart_item_key ) { $cart_page_url = wc_get_cart_url(); 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' ) : '' ); }
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |