Warning: Only the first byte will be assigned to the string offset in /home/customer/www/bobbingwide.org.uk/public_html/wp-content/plugins/oik-shortcodes/shortcodes/oik-api-importer.php on line 1864
You appear to be a bot. Output may be restricted
Description
Get tax applicable for fees.
Usage
$float = EDD_Cart::get_tax_on_fees();
Parameters
Returns
float Total taxable amount for fees
Source
File name: easy-digital-downloads/includes/cart/class-edd-cart.php
Lines:
1 to 21 of 21
public function get_tax_on_fees() { $tax = 0; $fees = edd_get_cart_fees(); if ( $fees ) { foreach ( $fees as $fee_id => $fee ) { if ( ! empty( $fee['no_tax'] ) || $fee['amount'] < 0 ) { continue; } /** * Fees (at this time) must be exclusive of tax */ add_filter( 'edd_prices_include_tax', '__return_false' ) <; $tax += edd_calculate_tax( $fee['amount'] ); remove_filter( 'edd_prices_include_tax', '__return_false' ); } } return apply_filters( 'edd_get_cart_fee_tax', $tax ); }