woocommerce_get_shipping_tax

woocommerce_get_shipping_tax

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_get_shipping_tax') is found 1 times:

  • /includes/class-wc-shipping-rate.php line 232
    	 *
    	 * @return float
    	 */
    	public function get_shipping_tax() {
    		return apply_filters( 'woocommerce_get_shipping_tax', count( $this->taxes ) > 0 && ! WC()->customer->get_is_vat_exempt() ? (float) array_sum( $this->taxes ) : 0.0, $this );
    	}
    
    	/**
    	 * Add some meta data for this rate.
    	 *
    	 * @since 2.6.0