Filter
rpress_get_cart_fee_tax
On this page
Filters the tax charged on cart fees.
Runs at the end of RPRESS_Cart::get_tax_on_fees(). Fees flagged no_tax and negative fees are skipped, and fees are treated as tax exclusive.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$tax | float | Tax on the fees. |
Return value#
float. The fee tax.
Example#
function my_cart_fee_tax( $tax ) {
return round( $tax, 2 );
}
add_filter( 'rpress_get_cart_fee_tax', 'my_cart_fee_tax', 10, 1 );
Source#
Applied in:
includes/cart/class-rpress-cart.php(line 1287), inRPRESS_Cart::get_tax_on_fees()
See also#
Was this page helpful?
