Skip to content

Instantly share code, notes, and snippets.

@gizalink
Created April 26, 2016 14:17
Show Gist options
  • Save gizalink/f585b9bcc0818efb6d71e436bca7b04b to your computer and use it in GitHub Desktop.
Save gizalink/f585b9bcc0818efb6d71e436bca7b04b to your computer and use it in GitHub Desktop.
<?php
/*
* Remove button add to cart on Shop or Category product page
*/
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart');
add_action( 'woocommerce_after_shop_loop_item', 'callback_function' );
function callback_function()
{
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment