Last active
April 10, 2019 11:52
-
-
Save webdados/5655d81019b8d598255045d36f1d8812 to your computer and use it in GitHub Desktop.
WooCommerce easy "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 (Yes, that's it...) - 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