Skip to content
Docs
Get RestroPress

Filter

rpress_remove_fee_url

Updated
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#

ParameterTypeDescription
$remove_urlstringThe 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), in RPRESS_Cart::remove_fee_url()

See also#

Was this page helpful?