Created
January 17, 2017 17:14
-
-
Save WPprodigy/5e0695c9f7f8a6b6a2082c7625dd0816 to your computer and use it in GitHub Desktop.
Unhook cart addons from the cart page 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
add_action( 'woocommerce_after_cart_table', 'wc_ninja_remove_cart_addons', 10 ); | |
function wc_ninja_remove_cart_addons() { | |
global $sfn_cart_addons; | |
remove_action( 'woocommerce_after_cart_table', array( $sfn_cart_addons, 'cart_display_addons' ), 20 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment