Created
August 14, 2013 06:11
-
-
Save remcotolsma/6228437 to your computer and use it in GitHub Desktop.
Adjust WooCommerce gateway icon with the WooCommerce 'woocommerce_available_payment_gateways' filter.
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 | |
function prefix_pronamic_ideal_gateway_icon( $gateways ) { | |
if ( isset( $gateways['pronamic_ideal'] ) ) { | |
$gateways['pronamic_ideal']->icon = get_stylesheet_directory_uri() . '/images/omnikassa.png'; | |
} | |
return $gateways; | |
} | |
add_filter( 'woocommerce_available_payment_gateways', 'prefix_pronamic_ideal_gateway_icon' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much! Very useful.