woocommerce_paypal_supported_currencies filter-hookWC 1.0

Check if this gateway is available in the user's country based on currency.

Usage

add_filter( 'woocommerce_paypal_supported_currencies', 'wp_kama_woocommerce_paypal_supported_currencies_filter' );

/**
 * Function for `woocommerce_paypal_supported_currencies` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_paypal_supported_currencies_filter( $array ){

	// filter...
	return $array;
}
$array
-

Where the hook is called

WC_Gateway_Paypal::is_valid_for_use()
woocommerce_paypal_supported_currencies
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 303-306
apply_filters(
	'woocommerce_paypal_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' )
),

Where the hook is used in WooCommerce

Usage not found.