Forked from craigcooperxyz/gist:f7cf758dc395252b9356
Created
November 15, 2018 00:31
-
-
Save jamiemitchell/5e782aa2fa1ff7ca87e3893907fedf06 to your computer and use it in GitHub Desktop.
Remove cross-sells from cart in WooCommerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Remove Cross-Sells from the shopping cart page | |
| * | |
| * Copy and paste this code into functions.php to | |
| * remove cross-sells from the cart in WooCommerce. | |
| * | |
| * You may need to remove the opening <?php tag | |
| * before you add it to your functions file. | |
| */ | |
| remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment