wc_tax_enabled
Are store-wide taxes enabled?
Usage
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
- -
Where the hook is called
wc_tax_enabled
woocommerce/includes/wc-conditional-functions.php 343
return apply_filters( 'wc_tax_enabled', get_option( 'woocommerce_calc_taxes' ) === 'yes' );