woocommerce_order_get_tax_location
Usage
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
- -
Where the hook is called
woocommerce_order_get_tax_location
woocommerce/includes/abstracts/abstract-wc-order.php 1943
return apply_filters( 'woocommerce_order_get_tax_location', $args, $this );
Where the hook is used in WooCommerce
woocommerce/src/Blocks/Shipping/ShippingController.php 80
add_filter( 'woocommerce_order_get_tax_location', array( $this, 'filter_order_tax_location' ), 10, 2 );