woocommerce_shipping_rate_taxes filter-hookWC 3.2.0

Filter the shipping rate taxes.

Usage

add_filter( 'woocommerce_shipping_rate_taxes', 'wp_kama_woocommerce_shipping_rate_taxes_filter', 10, 2 );

/**
 * Function for `woocommerce_shipping_rate_taxes` filter-hook.
 * 
 * @param array            $taxes The shipping rate taxes.
 * @param WC_Shipping_Rate $that  The shipping rate object.
 *
 * @return array
 */
function wp_kama_woocommerce_shipping_rate_taxes_filter( $taxes, $that ){

	// filter...
	return $taxes;
}
$taxes(array)
The shipping rate taxes.
$that(WC_Shipping_Rate)
The shipping rate object.

Changelog

Since 3.2.0 Introduced.

Where the hook is called

WC_Shipping_Rate::get_taxes()
woocommerce_shipping_rate_taxes
woocommerce/includes/class-wc-shipping-rate.php 319
return apply_filters( 'woocommerce_shipping_rate_taxes', $this->data['taxes'], $this );

Where the hook is used in WooCommerce

Usage not found.