WC_Admin_Setup_Wizard::is_square_supported_country()protectedWC 1.0

Deprecated from version 4.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Is Square country supported

Method of the class: WC_Admin_Setup_Wizard{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->is_square_supported_country( $country_code );
$country_code(string) (required)
Country code.

Changelog

Deprecated since 4.6.0

WC_Admin_Setup_Wizard::is_square_supported_country() code WC 9.7.1

protected function is_square_supported_country( $country_code ) {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	$square_supported_countries = array(
		'US',
		'CA',
		'JP',
		'GB',
		'AU',
	);
	return in_array( $country_code, $square_supported_countries, true );
}