Skip to content

Instantly share code, notes, and snippets.

@slash1andy
Created July 10, 2015 03:28
Show Gist options
  • Save slash1andy/caa198525d5dd1e51a81 to your computer and use it in GitHub Desktop.
Save slash1andy/caa198525d5dd1e51a81 to your computer and use it in GitHub Desktop.
Replace Default WooCommerce PayPal Accepted Cards Image
function replacePPIcon($iconUrl) {
return get_bloginfo('stylesheet_directory') . '/images/Cards.png';
}
add_filter('woocommerce_paypal_icon', 'replacePPIcon');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment