Title: Removing Availability
Last modified: August 18, 2019

---

# Removing Availability

 *  Resolved [mattiamariejulie](https://wordpress.org/support/users/mattiamariejulie/)
 * (@mattiamariejulie)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/removing-availability/)
 * Hello,
 * I wish to remove or hide the availability on the single product page.
    What I’ve
   already done is disabling the ‘enable stock management’ in the Woocommerce settings,
   that didn’t work. Additional I’ve tried to use this code in the functions.php
   file of my theme:
 *     ```
       function my_wc_hide_in_stock_message( $html, $text, $product ) {
       	$availability = $product->get_availability();
       	if ( isset( $availability['class'] ) && 'in-stock' === $availability['class'] ) {
       		return '';
       	}
       	return $html;
       }
       add_filter( 'woocommerce_stock_html', 'my_wc_hide_in_stock_message', 10, 3 );
       ```
   
 * But the code doesn’t work either. I keep seeing ‘Availability:
    In Stock & Ready
   to Ship’
 * Is there something wrong with the code? Something else I should check?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Thomas Shellberg](https://wordpress.org/support/users/shellbeezy/)
 * (@shellbeezy)
 * Automattic Happiness Engineer
 * [6 years, 8 months ago](https://wordpress.org/support/topic/removing-availability/#post-11849728)
 * Hi [@mattiamariejulie](https://wordpress.org/support/users/mattiamariejulie/),
 * That sounds like something added by a plugin or your theme. Does this show up
   with just WooCommerce activated and with a default theme(Storefront or 2019)?
 *  Thread Starter [mattiamariejulie](https://wordpress.org/support/users/mattiamariejulie/)
 * (@mattiamariejulie)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/removing-availability/#post-11852760)
 * Tested with the storefront and it seems to be a theme issue. Thank you will forward
   it to the theme developer.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Removing Availability’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mattiamariejulie](https://wordpress.org/support/users/mattiamariejulie/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/removing-availability/#post-11852760)
 * Status: resolved