woocommerce_paypal_supported_currencies
Filter the supported currencies for PayPal.
Usage
add_filter( 'woocommerce_paypal_supported_currencies', 'wp_kama_woocommerce_paypal_supported_currencies_filter' );
/**
* Function for `woocommerce_paypal_supported_currencies` filter-hook.
*
* @param array $supported_currencies Array of supported currency codes.
*
* @return array
*/
function wp_kama_woocommerce_paypal_supported_currencies_filter( $supported_currencies ){
// filter...
return $supported_currencies;
}
- $supported_currencies(array)
- Array of supported currency codes.
Changelog
| Since 2.0.0 | Introduced. |
Where the hook is called
woocommerce_paypal_supported_currencies
woocommerce_paypal_supported_currencies
woocommerce/src/Gateways/PayPal/Request.php 678-681
$supported_currencies = apply_filters( 'woocommerce_paypal_supported_currencies', PayPalConstants::SUPPORTED_CURRENCIES );
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 546-549
apply_filters( 'woocommerce_paypal_supported_currencies', $valid_currencies ),