Created
July 24, 2014 12:57
-
-
Save aderaaij/23bb581daa2919b565dd to your computer and use it in GitHub Desktop.
Remove add to cart on archive loop
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
<?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