WC_Admin_Setup_Wizard::is_paypal_supported_currency()
Deprecated since 4.6.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Is PayPal currency supported.
Method of the class: WC_Admin_Setup_Wizard{}
No Hooks.
Returns
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->is_paypal_supported_currency( $currency );
- $currency(string) (required)
- Currency code.
Changelog
Deprecated since | 4.6.0 |
WC_Admin_Setup_Wizard::is_paypal_supported_currency() WC Admin Setup Wizard::is paypal supported currency code WC 9.8.5
protected function is_paypal_supported_currency( $currency ) { _deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' ); $supported_currencies = array( 'AUD', 'BRL', 'CAD', 'MXN', 'NZD', 'HKD', 'SGD', 'USD', 'EUR', 'JPY', 'TRY', 'NOK', 'CZK', 'DKK', 'HUF', 'ILS', 'MYR', 'PHP', 'PLN', 'SEK', 'CHF', 'TWD', 'THB', 'GBP', 'RMB', 'RUB', 'INR', ); return in_array( $currency, $supported_currencies, true ); }