WC_Tax::calc_shipping_tax( float $price, array $rates )
Calculate the shipping tax using a passed array of rates.
Description Description
Parameters Parameters
- $price
-
(Required) Shipping cost.
- $rates
-
(Required) Taxation Rate.
Return Return
(array)
Source Source
File: includes/class-wc-tax.php
public static function calc_shipping_tax( $price, $rates ) { $taxes = self::calc_exclusive_tax( $price, $rates ); return apply_filters( 'woocommerce_calc_shipping_tax', $taxes, $price, $rates ); }