Change Merchant Gateway Images

Last updated on Wednesday, December 5th, 2012

Upload your chosen images to your current theme’s images folder and then add the relevant code to to your theme’s functions.php file. The following example replaces the image used for the Cash pseudo gateway:

add_filter('eshop_merchant_img_cash', 'my_icon_cash');
function my_icon_cash() {
	$icon = array(
		'path'=>get_stylesheet_directory(). '/images/cash.png',
		'url'=>get_stylesheet_directory_uri(). '/images/cash.png'
	);
	return $icon;
}

You can use the following filters to amend the core plugin’s gateway images:

eshop_merchant_img_cash
eshop_merchant_img_bank
eshop_merchant_img_authorizenet
eshop_merchant_img_payson
eshop_merchant_img_paypal
eshop_merchant_img_ideallite
eshop_merchant_img_webtopay
eshop_merchant_img_ogone
eshop_merchant_img_epn

WordPress Support Services

Top