Snippets: Remove WooCommerce Upsells

function myprefix_remove_upsells() {
	global $wpex_woocommerce_config;
	// Total 3.5.3 and under
	if ( $wpex_woocommerce_config ) {
		remove_action( 'woocommerce_after_single_product_summary', array( $wpex_woocommerce_config, 'upsell_display' ), 15 );
	}
	// Total 3.5.4+
	else {
		remove_action( 'woocommerce_after_single_product_summary', array( 'WPEX_WooCommerce_Config', 'upsell_display' ), 15 );
	}
}
add_action( 'init', 'myprefix_remove_upsells', 20 );
All PHP snippets should be added via a child theme's functions.php file.