Created
July 3, 2018 12:54
-
-
Save stuartduff/6de542eb20984c5de56c59ec36e5bfbd to your computer and use it in GitHub Desktop.
Remove PayPal Standard from displaying at checkout in WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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