Skip to content

Instantly share code, notes, and snippets.

@stuartduff
Created July 3, 2018 12:54
Show Gist options
  • Select an option

  • Save stuartduff/6de542eb20984c5de56c59ec36e5bfbd to your computer and use it in GitHub Desktop.

Select an option

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