Skip to content

Instantly share code, notes, and snippets.

@sharkyak
Created August 26, 2016 15:06
Show Gist options
  • Save sharkyak/9af74dfb0b209f75010741e4cc1104fc to your computer and use it in GitHub Desktop.
Save sharkyak/9af74dfb0b209f75010741e4cc1104fc to your computer and use it in GitHub Desktop.
woocommerce remove add to cart button
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
remove_action( 'woocommerce_simple_add_to_cart', 'woocommerce_simple_add_to_cart', 30 );
remove_action( 'woocommerce_grouped_add_to_cart', 'woocommerce_grouped_add_to_cart', 30 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment