I am having an unexpected error while removing add to cart button on my product page. I am using this tutorials for my reference code wpitech.com/hide-disable-add-to-ca... . Is there any other way to hide add to cart button. This is the code that I am using to hide add to cart button on my product page
I am having an unexpected error while removing add to cart button on my product page. I am using this tutorials for my reference code wpitech.com/hide-disable-add-to-ca... . Is there any other way to hide add to cart button. This is the code that I am using to hide add to cart button on my product page
function flav() {
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart');
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart');
return WooCommerce::instance();