Created
October 3, 2019 10:05
-
-
Save madeincosmos/b432fccc8266ec19316e7d55ed716ab4 to your computer and use it in GitHub Desktop.
Remove PayPal Checkout button from cart
This file contains hidden or 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
add_action( 'woocommerce_cart_actions', 'custom_remove_paypal_button' ); | |
function custom_remove_paypal_button() { | |
remove_action( 'woocommerce_proceed_to_checkout', array( wc_gateway_ppec()->cart, 'display_paypal_button' ), 20 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment