Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Replace PayPal logo WooCommerce
//Custom icon for PayPal payment option on WooCommerce checkout page.
function wpstudio_extended_paypal_icon() {
// picture of accepted credit card icons for PayPal payments
return get_stylesheet_directory_uri() .'/images/paypal.png';
add_filter( 'woocommerce_paypal_icon', 'wpstudio_extended_paypal_icon' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment