Created
August 17, 2023 12:24
-
-
Save wooxperto/b9e406a7da68cbd42d9b392b37785106 to your computer and use it in GitHub Desktop.
Remove cross sell product from WooCommerce Cart page.
This file contains 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 | |
/** | |
* @snippet Remove Cross-sell product from Cart page | WooCommerce | |
* @author WooXperto | |
* @date 17.08.2023 | |
*/ | |
function wooXperto_remove_cross_sell_product_cart_page(){ | |
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' ); | |
} | |
add_action("wp","remove_cross_sell_product_cart_page"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment