Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save webdados/6d9808d3c8c099f4a84d4b8eec69dc66 to your computer and use it in GitHub Desktop.
Save webdados/6d9808d3c8c099f4a84d4b8eec69dc66 to your computer and use it in GitHub Desktop.
Change the ifthenpay gateway icon on the WooCommerce blocks checkout
<?php
// For ifthenpay Gateway use gateway_ifthen_blocks_payment_method_data
add_filter(
'gateway_ifthen_blocks_payment_method_data',
function ( $payment_method_data ) {
$payment_method_data['icon'] = '/whatever/path/apple-google-pix.svg';
$payment_method_data['icon_width'] = 78;
$payment_method_data['icon_height'] = 24;
return $payment_method_data;
}
);
// For Multibanco use multibanco_ifthen_blocks_payment_method_data
// For MB WAY use mbway_ifthen_blocks_payment_method_data
// For Credit card use creditcard_ifthen_blocks_payment_method_data
// For Payshop use payshop_ifthen_blocks_payment_method_data
// For Cofidis Pay use cofidispay_ifthen_blocks_payment_method_data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment