Filter
rpress_get_fee_total
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#
| Parameter | Type | Description |
|---|---|---|
$fee_total | float | Sum of the fees not tied to a menu item. |
$arg2 | array | The 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), inRPRESS_Cart::get_total_fees()
See also#
Was this page helpful?
