Created
October 3, 2016 20:05
-
-
Save bentasm1/3a0a6d2f07341d70a4b9a0fbb224777d to your computer and use it in GitHub Desktop.
WC Vendors - Use PayPal to pay vendors, but not for taking customers $$
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
function wcv_bye_bye_paypalap( $available_gateways ) { | |
global $woocommerce; | |
unset( $available_gateways['paypalap'] ); | |
return $available_gateways; | |
} | |
add_filter( 'woocommerce_available_payment_gateways', 'wcv_bye_bye_paypalap' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment