Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Tax::can_use_automated_taxes()public staticWC 1.0

Check if the store has any enabled gateways.

Метод класса: Tax{}

No Hooks.

Return

true|false.

Usage

$result = Tax::can_use_automated_taxes();

Code of Tax::can_use_automated_taxes() WC 7.1.0

public static function can_use_automated_taxes() {
	if ( ! class_exists( 'WC_Taxjar' ) ) {
		return false;
	}

	return in_array( WC()->countries->get_base_country(), self::get_automated_support_countries(), true );
}