Skip to content

Instantly share code, notes, and snippets.

@simonlk
simonlk / Woocommerce - change paypal icon
Created November 28, 2012 00:41 — forked from mikejolley/gist:1425282
This snippet lets you edit the icon for the PayPal gateway in WooCommerce.
// Change the paypal icon
add_filter('woocommerce_paypal_icon', 'custom_woocommerce_paypal_icon');
function custom_woocommerce_paypal_icon( $url ) {
$url = get_bloginfo('template_url')."/assets/img/payment-icons.png";
return $url;
}