Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

WooCommercePayments::is_supported()public staticWC 1.0

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.

Return

true|false. True if the store location is in a WooPayments supported country, false otherwise.

Usage

$result = WooCommercePayments::is_supported();

WooCommercePayments::is_supported() code WC 9.7.1

public static function is_supported() {
	return ! empty( self::get_suggestion() );
}