Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

WooCommercePayments::is_supportedpublic 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.

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

Хуков нет.

Возвращает

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

Использование

$result = WooCommercePayments::is_supported();

Код WooCommercePayments::is_supported() WC 11.0.0

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