Created
January 11, 2018 23:40
-
-
Save LaurenaRehbein/c8d8f134d6903151654bba29a33dfb44 to your computer and use it in GitHub Desktop.
To change the Stripe 4.0 icons back to colour.
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
add_filter( 'wc_stripe_payment_icons', 'change_my_icons' ); | |
function change_my_icons( $icons ) { | |
// var_dump( $icons ); to show all possible icons to change. | |
$icons['visa'] = '<img src="https://mysite.com/wp-content/plugins/woocommerce/assets/images/icons/credit-cards/visa.svg" />'; | |
return $icons; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment