Last active
August 29, 2015 14:15
-
-
Save wp-kitten/3d9e4ab293db63c20f7e to your computer and use it in GitHub Desktop.
Hide Shop button (WooCommerce)
This file contains 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
public function __action_hideShopButton(){ | |
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', '__action_hideShopButton'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment