Last active
April 9, 2019 17:47
-
-
Save goncaloperes/712df5c760f348b536c46945de62e252 to your computer and use it in GitHub Desktop.
WooCommerce Catalog mode - Disable all products from being purchasable
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
<?php | |
// Disable all products from being purchasable - Add this to your (child) theme functions.php file | |
add_filter( 'woocommerce_is_purchasable', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment