Created
January 4, 2025 11:04
-
-
Save webdados/6d9808d3c8c099f4a84d4b8eec69dc66 to your computer and use it in GitHub Desktop.
Change the ifthenpay gateway icon on the WooCommerce blocks checkout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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