woocommerce_get_tax_location
Использование
add_filter( 'woocommerce_get_tax_location', 'wp_kama_woocommerce_get_tax_location_filter', 10, 3 ); /** * Function for `woocommerce_get_tax_location` filter-hook. * * @param $location * @param $tax_class * @param $customer * * @return */ function wp_kama_woocommerce_get_tax_location_filter( $location, $tax_class, $customer ){ // filter... return $location; }
- $location
- -
- $tax_class
- -
- $customer
- -
Где вызывается хук
woocommerce_get_tax_location
woocommerce/includes/class-wc-tax.php 472
return apply_filters( 'woocommerce_get_tax_location', $location, $tax_class, $customer );