Skip to content
  • Home
  • Woo Snippets
  • Woo Template Hooks
  • GeneratePress Hooks
  • GitHub Tutorials

Remove ‘What is PayPal?’ link and logo

This code removes both the “What is PayPal?” link and the PayPal logo from the payment options in the checkout.

		/**
 * Remove 'What is PayPal?' and logo
 */

add_filter('woocommerce_gateway_icon', 'sc_woo_remove_what_is_paypal', 10, 2);

function sc_woo_remove_what_is_paypal($icon_html, $gateway_id) {

  if('paypal' == $gateway_id) {
    $icon_html = '';
  }

  return $icon_html;

}
	
View Raw Code ID: 91061
© 2021 SC Workspace