Skip to content
Docs
Get RestroPress

Filter

rpress_get_fee_total

Updated
On this page

Filters the total of the cart fees.

Runs in RPRESS_Cart::get_total_fees(). Fees that are tied to a specific menu item are skipped, since they are already part of that item's price.

Parameters#

ParameterTypeDescription
$fee_totalfloatSum of the fees not tied to a menu item.
$arg2arrayThe cart fees.

Return value#

float. The fee total.

Example#

function my_cart_fee_total( $fee_total, $fees ) {
	return $fee_total;
}
add_filter( 'rpress_get_fee_total', 'my_cart_fee_total', 10, 2 );

Source#

Applied in:

  • includes/cart/class-rpress-cart.php (line 1159), in RPRESS_Cart::get_total_fees()

See also#

Was this page helpful?