WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

WC_Gateway_Paypal::get_icon_image() protected WC 1.0

Get PayPal images for a country.

{} Это метод класса: WC_Gateway_Paypal{}

Хуки из метода
Возвращает

Массив. of image URLs

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_icon_image( $country );
$country(строка) (обязательный)
Country code.

Код WC_Gateway_Paypal::get_icon_image() WC 5.0.0

<?php
protected function get_icon_image( $country ) {
	switch ( $country ) {
		case 'US':
		case 'NZ':
		case 'CZ':
		case 'HU':
		case 'MY':
			$icon = 'https://www.paypalobjects.com/webstatic/mktg/logo/AM_mc_vs_dc_ae.jpg';
			break;
		case 'TR':
			$icon = 'https://www.paypalobjects.com/webstatic/mktg/logo-center/logo_paypal_odeme_secenekleri.jpg';
			break;
		case 'GB':
			$icon = 'https://www.paypalobjects.com/webstatic/mktg/Logo/AM_mc_vs_ms_ae_UK.png';
			break;
		case 'MX':
			$icon = array(
				'https://www.paypal.com/es_XC/Marketing/i/banner/paypal_visa_mastercard_amex.png',
				'https://www.paypal.com/es_XC/Marketing/i/banner/paypal_debit_card_275x60.gif',
			);
			break;
		case 'FR':
			$icon = 'https://www.paypalobjects.com/webstatic/mktg/logo-center/logo_paypal_moyens_paiement_fr.jpg';
			break;
		case 'AU':
			$icon = 'https://www.paypalobjects.com/webstatic/en_AU/mktg/logo/Solutions-graphics-1-184x80.jpg';
			break;
		case 'DK':
			$icon = 'https://www.paypalobjects.com/webstatic/mktg/logo-center/logo_PayPal_betalingsmuligheder_dk.jpg';
			break;
		case 'RU':
			$icon = 'https://www.paypalobjects.com/webstatic/ru_RU/mktg/business/pages/logo-center/AM_mc_vs_dc_ae.jpg';
			break;
		case 'NO':
			$icon = 'https://www.paypalobjects.com/webstatic/mktg/logo-center/banner_pl_just_pp_319x110.jpg';
			break;
		case 'CA':
			$icon = 'https://www.paypalobjects.com/webstatic/en_CA/mktg/logo-image/AM_mc_vs_dc_ae.jpg';
			break;
		case 'HK':
			$icon = 'https://www.paypalobjects.com/webstatic/en_HK/mktg/logo/AM_mc_vs_dc_ae.jpg';
			break;
		case 'SG':
			$icon = 'https://www.paypalobjects.com/webstatic/en_SG/mktg/Logos/AM_mc_vs_dc_ae.jpg';
			break;
		case 'TW':
			$icon = 'https://www.paypalobjects.com/webstatic/en_TW/mktg/logos/AM_mc_vs_dc_ae.jpg';
			break;
		case 'TH':
			$icon = 'https://www.paypalobjects.com/webstatic/en_TH/mktg/Logos/AM_mc_vs_dc_ae.jpg';
			break;
		case 'JP':
			$icon = 'https://www.paypal.com/ja_JP/JP/i/bnr/horizontal_solution_4_jcb.gif';
			break;
		case 'IN':
			$icon = 'https://www.paypalobjects.com/webstatic/mktg/logo/AM_mc_vs_dc_ae.jpg';
			break;
		default:
			$icon = WC_HTTPS::force_https_url( WC()->plugin_url() . '/includes/gateways/paypal/assets/images/paypal.png' );
			break;
	}
	return apply_filters( 'woocommerce_paypal_icon', $icon );
}