-
-
Save iPublicis/2dba7275ae8a686684296a3dd42d363f 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