Remove WooCommerce Upsells
Simply go in the Customizer and enter 0 for the number of items to display for the Upsells. No more need for a snippet!!!
// silence is golden.
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)