Created
March 8, 2017 15:43
-
-
Save bigdigital/202607c4f861fac5bd9eeb9190500564 to your computer and use it in GitHub Desktop.
remove woocommerce add to cart button
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
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