Skip to content

Instantly share code, notes, and snippets.

@stuartduff
Created July 3, 2018 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartduff/6de542eb20984c5de56c59ec36e5bfbd to your computer and use it in GitHub Desktop.
Save stuartduff/6de542eb20984c5de56c59ec36e5bfbd to your computer and use it in GitHub Desktop.
Remove PayPal Standard from displaying at checkout in WooCommerce
/**
* Remove PayPal Standard from displaying at checkout in WooCommerce
*/
function remove_paypal_from_available_payment_gateways( $gateways ) {
unset( $gateways['paypal'] );
return $gateways;
}
add_filter( 'woocommerce_available_payment_gateways', 'remove_paypal_from_available_payment_gateways' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment