Skip to content

Instantly share code, notes, and snippets.

@aderaaij
Created July 24, 2014 12:57
Show Gist options
  • Save aderaaij/23bb581daa2919b565dd to your computer and use it in GitHub Desktop.
Save aderaaij/23bb581daa2919b565dd to your computer and use it in GitHub Desktop.
Remove add to cart on archive loop
<?php
add_action( 'woocommerce_after_shop_loop_item', 'remove_add_to_cart_buttons', 1 );
function remove_add_to_cart_buttons() {
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment