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

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

add_filter( 'woocommerce_order_get_tax_location', 'wp_kama_woocommerce_order_get_tax_location_filter', 10, 2 );

/**
 * Function for `woocommerce_order_get_tax_location` filter-hook.
 * 
 * @param  $args 
 * @param  $that 
 *
 * @return 
 */
function wp_kama_woocommerce_order_get_tax_location_filter( $args, $that ){

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

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

WC_Abstract_Order::get_tax_location()
woocommerce_order_get_tax_location
woocommerce/includes/abstracts/abstract-wc-order.php 1630
return apply_filters( 'woocommerce_order_get_tax_location', $args, $this );

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

woocommerce/packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php 48
add_filter( 'woocommerce_order_get_tax_location', array( $this, 'handle_local_pickup_taxes' ) );