wc_tax_enabled хук-фильтр . WC 1.0
Are store-wide taxes enabled?
Использование
add_filter( 'wc_tax_enabled', 'filter_function_name_4960' ); function filter_function_name_4960( $get_option() === yes ){ // filter... return $get_option() === yes; }
- $get_option() === yes
- -
Где вызывается хук
wc_tax_enabled
woocommerce/includes/wc-conditional-functions.php 342
return apply_filters( 'wc_tax_enabled', get_option( 'woocommerce_calc_taxes' ) === 'yes' );