woocommerce_get_shipping_tax filter-hookWC 1.0

Get shipping tax.

Usage

add_filter( 'woocommerce_get_shipping_tax', 'wp_kama_woocommerce_get_shipping_tax_filter', 10, 2 );

/**
 * Function for `woocommerce_get_shipping_tax` filter-hook.
 * 
 * @param  $(float) array_sum() 
 * @param  $that                
 *
 * @return 
 */
function wp_kama_woocommerce_get_shipping_tax_filter( $(float) array_sum(), $that ){

	// filter...
	return $(float) array_sum();
}
$(float) array_sum()
-
$that
-

Where the hook is called

WC_Shipping_Rate::get_shipping_tax()
woocommerce_get_shipping_tax
woocommerce/includes/class-wc-shipping-rate.php 232
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 );

Where the hook is used in WooCommerce

Usage not found.