• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_Cart::get_tax_on_fees() – Get tax applicable for fees.

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 );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th April 2020

Primary Sidebar

Information

Function name: EDD_Cart::get_tax_on_fees
Class ref: EDD_Cart
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/cart/class-edd-cart.php
File ref: includes/cart/class-edd-cart.php
Deprecated?: No
API Letters: C,E,G,O,T

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites