Skip to content

Instantly share code, notes, and snippets.

@bulentsakarya
Forked from corsonr/functions.php
Last active November 29, 2019 20:28
Show Gist options
  • Save bulentsakarya/da75b83068f553a7852f91a441327b30 to your computer and use it in GitHub Desktop.
Save bulentsakarya/da75b83068f553a7852f91a441327b30 to your computer and use it in GitHub Desktop.
WooCommerce: disable payments on checkout page
<?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