woocommerce_order_amount_line_tax хук-фильтрWC 1.0

Get line tax - useful for gateways.

Использование

add_filter( 'woocommerce_order_amount_line_tax', 'wp_kama_woocommerce_order_amount_line_tax_filter', 10, 2 );

/**
 * Function for `woocommerce_order_amount_line_tax` filter-hook.
 * 
 * @param  $item 
 * @param  $that 
 *
 * @return 
 */
function wp_kama_woocommerce_order_amount_line_tax_filter( $item, $that ){

	// filter...
	return $item;
}
$item
-
$that
-

Где вызывается хук

WC_Abstract_Order::get_line_tax()
woocommerce_order_amount_line_tax
woocommerce/includes/abstracts/abstract-wc-order.php 1981
return apply_filters( 'woocommerce_order_amount_line_tax', is_callable( array( $item, 'get_total_tax' ) ) ? wc_round_tax_total( $item->get_total_tax() ) : 0, $item, $this );

Где используется хук в WooCommerce

Использование не найдено.