Filter
rpress_remove_item_url
On this page
Filters the URL used to remove a line from the cart.
Runs in RPRESS_Cart::remove_item_url(). The URL points at the current page (or the checkout during AJAX) with the cart_item and rpress_action=remove query arguments, plus cache busting.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$remove_url | string | The remove-item URL. |
Return value#
string. The remove-item URL.
Example#
function my_remove_item_url( $remove_url ) {
return add_query_arg( 'ref', 'cart', $remove_url );
}
add_filter( 'rpress_remove_item_url', 'my_remove_item_url', 10, 1 );
Source#
Applied in:
includes/cart/class-rpress-cart.php(line 451), inRPRESS_Cart::remove_item_url()
See also#
Was this page helpful?
