woocommerce_paypal_supported_currencies filter-hookWC 2.0.0

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

Request::get_paypal_create_order_request_params()
woocommerce_paypal_supported_currencies
WC_Gateway_Paypal::is_valid_for_use()
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
),

Where the hook is used in WooCommerce

Usage not found.