Skip to content

Instantly share code, notes, and snippets.

@swoboda
Last active September 11, 2017 08:35
Show Gist options
  • Save swoboda/27b457dd3856335259618798c2e6eeac to your computer and use it in GitHub Desktop.
Save swoboda/27b457dd3856335259618798c2e6eeac to your computer and use it in GitHub Desktop.
Make all WooCommerce products to be sold individually
<?php
// Do NOT include the opening php tag
// Make all products to be sold individually
add_filter( 'woocommerce_is_sold_individually', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment