wc_tax_enabled
Are store-wide taxes enabled?
Использование
add_filter( 'wc_tax_enabled', 'wp_kama_wc_tax_enabled_filter' );
/**
* Function for `wc_tax_enabled` filter-hook.
*
* @param $get_option() === yes
*
* @return
*/
function wp_kama_wc_tax_enabled_filter( $get_option() === yes ){
// filter...
return $get_option() === yes;
}
- $get_option() === yes
- -
Где вызывается хук
wc_tax_enabled
woocommerce/includes/wc-conditional-functions.php 397
return apply_filters( 'wc_tax_enabled', get_option( 'woocommerce_calc_taxes' ) === 'yes' );