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.
Метод класса: WooCommercePayments{}
Хуков нет.
Возвращает
true|false. True if the store location is in a WooPayments supported country, false otherwise.
Использование
$result = WooCommercePayments::is_supported();
Код WooCommercePayments::is_supported() WooCommercePayments::is supported WC 11.0.1
public static function is_supported() {
return ! empty( self::get_suggestion() );
}