woocommerce_admin_third_party_tax_setup_complete
woocommerce_admin_third_party_tax_setup_complete
Appears in: woocommerce.10.0.4, woocommerce.10.1.2, woocommerce.9.4.2, woocommerce.9.4.3, woocommerce.9.5.1, woocommerce.9.5.2, woocommerce.9.7.0, woocommerce.9.7.1, woocommerce.9.8.1, woocommerce.9.9.3, woocommerce.9.9.5
Hook Type: filter
Displaying hooks found in version: woocommerce.9.9.5apply_filters('woocommerce_admin_third_party_tax_setup_complete') is found 1 times:
- /src/Admin/Features/OnboardingTasks/Tasks/Tax.php line 121
$wc_connect_taxes_enabled = get_option( 'wc_connect_taxes_enabled' ); $is_wc_connect_taxes_enabled = ( $wc_connect_taxes_enabled === 'yes' ) || ( $wc_connect_taxes_enabled === true ); // seems that in some places boolean is used, and other places 'yes' | 'no' is used // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment -- We will replace this with a formal system by WC 9.6 so lets not advertise it yet. $third_party_complete = apply_filters( 'woocommerce_admin_third_party_tax_setup_complete', false ); /** * Ideally we would check against `wc_tax_enabled()` instead of `false !== get_option( 'woocommerce_no_sales_tax' )`, * however, tax is disabled by default making this task complete by default if we use it. If we change taxes * to be enabled by default in the future, this can be updated to check against `wc_tax_enabled()` which is * more accurate for this evaluation.