Skip to content

Instantly share code, notes, and snippets.

@SiR-DanieL
Last active October 30, 2023 07:51
Show Gist options
  • Save SiR-DanieL/4e8db7b2a4217f6876168ada17dabe6b to your computer and use it in GitHub Desktop.
Save SiR-DanieL/4e8db7b2a4217f6876168ada17dabe6b to your computer and use it in GitHub Desktop.
How To Disable Payments on WooCommerce
<?php
add_filter( 'woocommerce_cart_needs_payment', '__return_false' );
@kaushal83anil
Copy link

Hi I had checked this filter and used in one of my theme but its still return a error on check out page is there any other option to disable that validation error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment