WooCommerce Remove Availability/In Stock From Single Product Page
Use following code to remove availability/in stock from single product page.
Method:
- Copy code to your functions.php.
/* Remove availability */ add_filter( 'woocommerce_get_availability', 'bas_get_availability', 1, 2); function bas_get_availability($availability,$_product){ global $product; if($_product->is_in_stock()){ $availability['availability'] = __('', 'woocommerce'); } return $availability; }
1 comments:
Post a Comment