Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iPublicis/2dba7275ae8a686684296a3dd42d363f to your computer and use it in GitHub Desktop.
Save iPublicis/2dba7275ae8a686684296a3dd42d363f to your computer and use it in GitHub Desktop.
WooCommerce easy "Catalog mode" - Disable all products from being purchasable
<?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