Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created December 2, 2011 23:12
Show Gist options
  • Save mikejolley/1425282 to your computer and use it in GitHub Desktop.
Save mikejolley/1425282 to your computer and use it in GitHub Desktop.
This snippet lets you edit the icon for the PayPal gateway in WooCommerce.
add_filter('woocommerce_paypal_icon', 'custom_woocommerce_paypal_icon')
function custom_woocommerce_paypal_icon( $url ) {
$url = 'http://yoursite,com/youriconurl.png';
return $url;
}
@Firestorm-Graphics
Copy link

syntax error on line 1, should read:

add_filter('woocommerce_paypal_icon', 'custom_woocommerce_paypal_icon');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment