Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
WooCommercePayments::is_supported
Check if the store location is in a WooPayments supported country.
We infer this from the availability of a WooPayments payment gateways suggestion.
Method of the class: WooCommercePayments{}
No Hooks.
Returns
true|false. True if the store location is in a WooPayments supported country, false otherwise.
Usage
$result = WooCommercePayments::is_supported();
WooCommercePayments::is_supported() WooCommercePayments::is supported code WC 10.5.0
public static function is_supported() {
return ! empty( self::get_suggestion() );
}