Product Page

WooCommerce Change In Stock Text

WooCommerce Change In Stock Text


There are no pre-requisites in order for you to be able to implement this solution.

How To Implement This Solution?

Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.

About This Solution

If you’ve enabled stock management on our store, customers will see the stock status on the single product page. If a product has availability, they’ll see a green happy face and the text “In stock”. This quick guide shows you how you can customise this text to show something perhaps a little more fun or tailored towards your business language. Simply edit the text as necessary from the code to transform the in stock text.

 * Snippet Name:	WooCommerce Change In Stock Text
 * Snippet Author:

add_filter( 'woocommerce_get_availability', 'ecommercehints_change_in_stock_text', 10, 2);
function ecommercehints_change_in_stock_text( $availability, $product ) {

    if ( $product->is_in_stock() ) {
        $availability['availability'] = __('Plenty available!', 'woocommerce'); // Customised text
    return $availability;

Snippet Benefits

  • Customise the “In stock” stock status text to be in-line with your business’ language.

100 WooCommerce Conversion Rate Optimisation Tips

This field is for validation purposes and should be left unchanged.

Let’s collaborate!

Need to outsource WordPress development?

Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.

First Timer Here?

Sign up to receive 20% off on your first month with us.