WC_Shipping_Rate::get_shipping_tax()
Get shipping tax.
{} It's a method of the class: WC_Shipping_Rate{}
Hooks from the method
Return
Array
.
Usage
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->get_shipping_tax();
Code of WC_Shipping_Rate::get_shipping_tax() WC Shipping Rate::get shipping tax WC 6.7.0
public function get_shipping_tax() { return apply_filters( 'woocommerce_get_shipping_tax', count( $this->taxes ) > 0 && ! WC()->customer->get_is_vat_exempt() ? array_sum( $this->taxes ) : 0, $this ); }