×

 

Home Contact Us Payments SC Commerce SC Commerce Docs SC Commerce Snippets

Simply Computing

We make websites. Simple.

Replace SC Commerce default PayPal icon

This code allows you to replace the default PayPal image with one at a custom url.

		/*
 * Replace SC Commerce default PayPal icon
 */

add_filter('woocommerce_paypal_icon', 'sc_woo_custom_paypal_checkout_icon');

function sc_woo_custom_paypal_checkout_icon() {

  return 'https://classiccommerce.cc/paypal.png'; // write your own image URL here

}
	
   View Raw Code ID: 91111