Skip to content

Instantly share code, notes, and snippets.

@webdados
Last active April 10, 2019 11:52
Show Gist options
  • Save webdados/5655d81019b8d598255045d36f1d8812 to your computer and use it in GitHub Desktop.
Save webdados/5655d81019b8d598255045d36f1d8812 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