Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Last active February 17, 2022 10:06
Show Gist options
  • Save plugin-republic/7138fd16bd80fc8199ddb165e37a875a to your computer and use it in GitHub Desktop.
Save plugin-republic/7138fd16bd80fc8199ddb165e37a875a to your computer and use it in GitHub Desktop.
<?php
/*
* Don't organise child products under parent products
*/
remove_action( 'woocommerce_cart_loaded_from_session', 'pewc_cart_loaded_from_session' );
remove_filter( 'woocommerce_cart_item_remove_link', 'pewc_cart_item_remove_link', 10, 2 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment