wc_tax_enabled │ filter-hook │ WC 2.4.0

Filters whether store-wide taxes are enabled.

Usage

add_filter( 'wc_tax_enabled', 'wp_kama_wc_tax_enabled_filter' );

/**
 * Function for `wc_tax_enabled` filter-hook.
 * 
 * @param bool $tax_enabled Whether taxes are enabled.
 *
 * @return bool
 */
function wp_kama_wc_tax_enabled_filter( $tax_enabled ){
	// filter...
	return $tax_enabled;
}
$tax_enabled(true|false)
Whether taxes are enabled.

Changelog

Since 2.4.0 Introduced.

Where the hook is called

wc_tax_enabled()
wc_tax_enabled
woocommerce/includes/wc-conditional-functions.php 427
return apply_filters( 'wc_tax_enabled', get_option( 'woocommerce_calc_taxes' ) === 'yes' );

Where the hook is used in WooCommerce

Usage not found.