woocommerce_show_tax_configuration_notice filter-hookWC 10.5.0

Filter whether to show the tax configuration incomplete notice.

Usage

add_filter( 'woocommerce_show_tax_configuration_notice', 'wp_kama_woocommerce_show_tax_configuration_notice_filter' );

/**
 * Function for `woocommerce_show_tax_configuration_notice` filter-hook.
 * 
 * @param bool $show_notice Whether to show the notice.
 *
 * @return bool
 */
function wp_kama_woocommerce_show_tax_configuration_notice_filter( $show_notice ){

	// filter...
	return $show_notice;
}
$show_notice(true|false)
Whether to show the notice.
Default: true

Changelog

Since 10.5.0 Introduced.

Where the hook is called

WC_Settings_Tax::tax_configuration_validation_notice()
woocommerce_show_tax_configuration_notice
woocommerce/includes/admin/settings/class-wc-settings-tax.php 427
if ( ! apply_filters( 'woocommerce_show_tax_configuration_notice', true ) ) {

Where the hook is used in WooCommerce

Usage not found.