Skip to content

Instantly share code, notes, and snippets.

@WPprodigy
Created February 2, 2017 13:20
Show Gist options
  • Save WPprodigy/46c78de4bc2f5cb6b46ba3c9ac8f682e to your computer and use it in GitHub Desktop.
Save WPprodigy/46c78de4bc2f5cb6b46ba3c9ac8f682e to your computer and use it in GitHub Desktop.
Remove cart addons default location on the cart page in WooCommerce
add_action( 'woocommerce_after_cart_table', 'wc_ninja_remove_cart_addons' );
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