woocommerce_paypal_supported_currencies хук-фильтрWC 1.0

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

Использование

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
-

Где вызывается хук

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' )
),

Где используется хук в WooCommerce

Использование не найдено.