Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bigdigital/202607c4f861fac5bd9eeb9190500564 to your computer and use it in GitHub Desktop.
Save bigdigital/202607c4f861fac5bd9eeb9190500564 to your computer and use it in GitHub Desktop.
remove woocommerce add to cart button
function remove_woocommerce_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 );
}
add_action('init','remove_woocommerce_button');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment