Last active
January 7, 2020 05:39
-
-
Save njeffers/b677f7327269f69c6fe064804d13f0fa to your computer and use it in GitHub Desktop.
Force Woocommerce to Collect Payment Info on All Orders
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
/** | |
* Force Woocommerce to require payment on all orders | |
* | |
* @author Nick Jeffers | |
* @url nickjeffers.com | |
*/ | |
add_filter( 'woocommerce_cart_needs_payment', '__return_true', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment