Skip to content

Instantly share code, notes, and snippets.

@mikeyarce
Created June 23, 2016 21:50
Show Gist options
  • Select an option

  • Save mikeyarce/d56d77de3fef08db858aa2d928dbef3b to your computer and use it in GitHub Desktop.

Select an option

Save mikeyarce/d56d77de3fef08db858aa2d928dbef3b to your computer and use it in GitHub Desktop.
<?php
/*STEP 1 - REMOVE ADD TO CART BUTTON ON PRODUCT ARCHIVE (SHOP) */
function remove_loop_button(){
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
}
add_action('init','remove_loop_button');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment