Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
Tax::can_use_automated_taxes()
Check if the store has any enabled gateways.
Method of the class: Tax{}
No Hooks.
Return
true|false
.
Usage
$result = Tax::can_use_automated_taxes();
Tax::can_use_automated_taxes() Tax::can use automated taxes code WC 8.7.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 ); }