Last active
July 22, 2024 12:15
-
-
Save xlplugins/56008092c25d583b6fcc315dda32f610 to your computer and use it in GitHub Desktop.
modify icon images for funnelkit stripe
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
function fkwcs_custom_woocommerce_gateway_icon($icon, $gateway_id) { | |
if ($gateway_id == 'fkwcs_stripe') { | |
$icon = '<img src="https://i.imgur.com/kf9psAE.png" alt="Stripe" />'; | |
} | |
return $icon; | |
} | |
add_filter('woocommerce_gateway_icon', 'fkwcs_custom_woocommerce_gateway_icon', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment