Here’s a quick and simple snippets for those of you who dislike the default PayPal icon used in WooCommerce plugin and want to switch it with another image.
// Replace PayPal icon in WooCommerce
function risbl_paypal_checkout_icon() {
return 'https://www.paypalobjects.com/webstatic/mktg/logo-center/logo_betalen_met_paypal_nl.jpg'; // write your own image URL here
}
add_filter( 'woocommerce_paypal_icon', 'risbl_paypal_checkout_icon' );
Simply replace the image URL with your own custom image URL.
457 total views, 3 views today