Skip to content

Instantly share code, notes, and snippets.

@geeac
Created November 6, 2017 09:40
Show Gist options
  • Save geeac/9f245e9229778fde095e961725f08071 to your computer and use it in GitHub Desktop.
Save geeac/9f245e9229778fde095e961725f08071 to your computer and use it in GitHub Desktop.
remove "add to cart" functionality
// Remove Add to cart functionality
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart');
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment