MainWP Community

Make All Products Not Purchasable in WooCommerce

Use this code snippet to make all product not purchasable in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'woocommerce_is_purchasable', '__return_false');
2 Likes