WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard::should_show_automated_tax() protected WC 1.0

Deprecated from version 4.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

The "automated tax" extra should only be shown if the current user can install plugins and the store is in a supported country.

{} It's a method of the class: WC_Admin_Setup_Wizard{}

No Hooks.


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->should_show_automated_tax();


Deprecated 4.6.0

Code of WC_Admin_Setup_Wizard::should_show_automated_tax() WC 5.9.0

protected function should_show_automated_tax() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	if ( ! current_user_can( 'install_plugins' ) ) {
		return false;

	$country_code = WC()->countries->get_base_country();
	// https://developers.taxjar.com/api/reference/#countries .
	$tax_supported_countries = array_merge(
		array( 'US', 'CA', 'AU' ),

	return in_array( $country_code, $tax_supported_countries, true );