-
-
Save bulentsakarya/da75b83068f553a7852f91a441327b30 to your computer and use it in GitHub Desktop.
WooCommerce: disable payments on checkout page
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
<?php // Do not include this if already open! Code goes in theme functions.php. | |
// Disable all payment gateways on the checkout page and replace the "Pay" button by "Place order" | |
add_filter( 'woocommerce_cart_needs_payment', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment