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