woocommerce_prices_include_tax
Are prices inclusive of tax?
Usage
add_filter( 'woocommerce_prices_include_tax', 'wp_kama_woocommerce_prices_include_tax_filter' ); /** * Function for `woocommerce_prices_include_tax` filter-hook. * * @param $get_option() === yes * * @return */ function wp_kama_woocommerce_prices_include_tax_filter( $get_option() === yes ){ // filter... return $get_option() === yes; }
- $get_option() === yes
- -
Where the hook is called
woocommerce_prices_include_tax
woocommerce/includes/wc-conditional-functions.php 367
return wc_tax_enabled() && apply_filters( 'woocommerce_prices_include_tax', get_option( 'woocommerce_prices_include_tax' ) === 'yes' );