woocommerce_show_tax_configuration_notice
Filter whether to show the tax configuration incomplete notice.
Использование
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.
По умолчанию: true
Список изменений
| С версии 10.5.0 | Введена. |
Где вызывается хук
woocommerce_show_tax_configuration_notice
woocommerce/includes/admin/settings/class-wc-settings-tax.php 428
if ( ! apply_filters( 'woocommerce_show_tax_configuration_notice', true ) ) {