Created
November 24, 2020 08:20
-
-
Save nicomollet/584dca66f38285daaa098d6798c92fc3 to your computer and use it in GitHub Desktop.
WooCommerce: customize "payment on site" icon
This file contains hidden or 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 | |
| /** | |
| * WooCommerce Gateway Icon for "Payment On Site" | |
| * | |
| * | |
| * @param string $icon The icon html markup | |
| * | |
| * @return string | |
| */ | |
| function custom_woocommerce_paymentonsite_icon( $icon ) { | |
| $icon = 'https://pathtoimaage/paymentonsite-icon.png'; | |
| return $icon; | |
| } | |
| add_action( 'woocommerce_paymentonsite_icon', 'custom_woocommerce_paymentonsite_icon', 1000 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment