Display Custom Backorder Wording In WooCommerce

I think as a self-taught developer, tinkerer, or whatever you label yourself, the ability to find the information you need for specific coding solutions is the super-ninja skill. That’s what I do when I learn to solve WooCommerce and Shopify solutions I read about in Facebook groups and other online forums. In this post, we will see how to rephrase the display message for Products available for Backorder.

Custom WooCommerce and Shopify Solutions

Discover useful WooCommerce and Shopify custom solutions for your online store today at affordable prices!

Note: All examples in this post are part of a development/learning WooCommerce install using a default Storefront theme. PHP code is placed in the child theme’s function.php file.

The Newsletter for PHP and MySQL Developers

Receive a copy of my ebook, “10 MySQL Tips For Everyone”, absolutely free when you subscribe to the OpenLampTech newsletter.

Image by Mohamed Hassan from Pixabay 

I have this default Backorder message for a Single Product that is out of stock and is marked available for backorder:

With the code snippet below, we can rephrase the ‘Available on backorder‘ message (and others):

add_filter( 'gettext', 'woo_custom_backorder_string_message', 999, 3 );

function woo_custom_backorder_string_message( $translated, $untranslated, $domain ) {

if ( ! is_admin() && 'woocommerce' === $domain ) {

switch ( $translated ) {

case 'Available on backorder':

$translated = 'Can be backordered and ships when stock levels replenish';
return $translated;

A couple of pointers about the code:

  • The ! is_admin() function in the if() conditional ensures nothing on the backend (admin) section changes.
  • The ‘woocommerce’ === $domain applies to the WooCommerce plugin

As shown in the following screenshot, the custom display message is available on the Single Product page for this product:

Do you have a need for this exact customization for your WooCommerce online store? Consider hiring me to complete this for you, hassle-free. Contact me for more information.

Credit Resources

I am so grateful for all of the fantastic resources and content available online. This article is an example of those I studied in order to solidify these concepts: https://www.businessbloomer.com/translate-single-string-woocommerce-wordpress/

If you see any mistakes in the code or know of a better solution, please share them freely in the comments section.

Thank you for reading this post. Please share it with someone else who would enjoy it as well.

Josh Otwell has a passion to grow as a PHP Developer, SQL expert, and technical blogger/writer.

Disclaimer: The majority of examples in this post, are performed in a personal development/learning workstation environment and should not be considered production quality or ready. Your particular goals and needs may vary. Like always, just because you can do something doesn’t mean you should. My opinions are my own.

More ways I can help

Disclosure: Some of this blog post’s services and product links are affiliate links. At no additional cost to you, should you make a purchase by clicking through one of them, I will receive a commission.

The Newsletter for PHP and MySQL Developers

Receive a copy of my ebook, “10 MySQL Tips For Everyone”, absolutely free when you subscribe to the OpenLampTech newsletter.

📰 Get your brand, product, or service the attention it deserves with affordable classified ad placement in the OpenLampTech newsletter. I appreciate your support!

Hey thanks for commenting! Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.